|
Very much an American term
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Surprisingly, it's archaic English that we stole from the Germans, who pinched it from the Latin semestris meaning "half-yearly", from sex (six) and mensis (a month).
The Left Ponders then corrupted it into their education system to mean "15 to 18 weeks of schooling"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Mmm.. since when has 15 to 18 weeks been six months ?
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Actually,
@OriginalGriff has his head up in the clouds. But he should have gone higher and reached for the moon.
Semester[^]
|
|
|
|
|
That's better than I'm usually accused of having it ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
PREACH IT RANDOR PREACH!!!
|
|
|
|
|
You bloody fool. That table alone gives him a fortnight of potential CCC clues!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
DRHuff wrote: That table alone gives him a fortnight Maybe, he's also got many months before the next partial eclipse[^] passes over his home. Looks to be around the .43 zone.
|
|
|
|
|
I did say "corrupted"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I get the and condition for as an anagram indicator, but what's warranty doing in there other than to make it read well?
|
|
|
|
|
Yeah,
Greg Utas wrote: make it read well? Exactly. It's there to make it less Ximenean.
|
|
|
|
|
So the binary length shown in two nibbles indicates that you use two words from the clue?
|
|
|
|
|
Cryptic crossword puzzles have the length of the word at the end. Using binary was my way of making it a bit harder for the non-programmers. There are quite a few here in the Lounge.
Best Wishes,
-David Delaune
|
|
|
|
|
Most probably asked allready hundred time...
VS gives a lot of warnings and hints. Hints like 'put this and that in curly brackets or not', what else.
Why the hell VS can't give me a hint for really important things like 'pay attention you are using a class IDisposable' keep in mind to use it in a using block?
[Edit]
Ok, ok: But maybe then at least if I hover over the class name in VS, at least show me explicitely that it is IDisposable
[/Edit]
Only a noob's question
modified 11-Jan-22 17:21pm.
|
|
|
|
|
Probably because most of the time IDisposable objects are persisted for some time: for example, the Winforms Control class implements IDisposable, and Form is derived from that. You don't want a "Oi!" every time you add a form to your project, or a control to your form!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I agree on that. So the next question: Is it really impossible for the compiler to give me a hint when IDisposable is not used in a using block or not disposed explicitely? Most probably very hard, but not sure wheter it is impossible.
[Edit]
I think I found the answer by myself
if (random) obj.Dispose();
[/Edit]
|
|
|
|
|
The compiler can't - it can't keep track of objects that are created at run time and passed into / out of methods.
A simple example: create a disposable class in a method, return it as an object, and the compiler can't trace it any further as an IDisposable instance.
It would probably be possible to work it out within a method if the instance never leaves it, but that's non-trivial as well as the instance could be added to an array or other collection which could be part of a class instance which is returned by the method.
There are a lot of ways for the compiler to get it wrong and be more annoying than mixing tabs and spaces in Python ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: be more annoying than mixing tabs and spaces in Python ...
I didn't think this (annoyance) was possible.
|
|
|
|
|
OTH: GC is able to detect not longer in use objects. Why not the same for IDisp?
|
|
|
|
|
Because it's not important.
Frequently I wrap an IDisposable object in another class and dispose of it when I dispose of the wrapper object, no big deal. I wouldn't want to have a warning I would have to disable to avoid an error when I compile with warnings as errors.
There are bigger bugs to fry.
|
|
|
|
|
But in case you use a class from a library: You really always check wheter it is IDisposable or not?
In my case it was ManagementObjectSearcher from System.Management .
To check you need to go back inhertitance until you end in Object or yes maybe before in IDisposable
|
|
|
|
|
Ah, well, I rarely use third-party rubbish anyway. Or VS.
Put it in a using and see if it compiles.
Or use Intellisense to see if it has a Dispose.
|
|
|
|
|
Intellisense, yes that would be nice. No idea where Intellisense shows it is IDisp.
Btw. third-party rubbish like ManagementObjectSearcher
|
|
|
|
|
P.S. Also consider classes which are IDisposable but which have private constructors, such as Singletons and classes which provide a static Create method.
Sadly, many bloggers pass along misinformation about IDisposable and the using statement.
|
|
|
|
|
Project -> Properties -> Code Analysis: Checked - Enable Code Analysis on Build
Project -> Properties -> Code Analysis: Dropdown Selection - Microsoft All Rules
You want to make sure you are getting warnings for code CA2000 Dispose objects before losing scope
|
|
|
|