Somehow, I found this amusing.
My best code is written with the delete key.
Heh . My computer's waaaay too aggressive, it tries to kill me all the time. It's crazy.
Do not make direct eye contact with me.
made me chuckle...good stuff, 8/10
some entropy with that sink? entropysink.com
there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka
Prelude.Reputation++;
Prelude.Reputation++;Makes me sadYou must spread some Reputation around before giving it to Prelude again.
assertion errors are, under normal circumstances, errors purposely thrown by the programmer to catch bugs in the code.
For example, if a programmer codes a function that he KNOWS should always return true, but he has a feeling it might be returning false, he could do:
assert myBooleanFunctionThatShouldReturnTrue( );
if it returns false, the assert statement will generate an assertion error and the program will stop execution.
Normally you have to turn assertions on using a command line statement or the compiler will roll right over them like they werent even there.
>What is an assertion error, anyways?
An error found in debugging that says the code is broken. For example:
If foo is passed a null pointer then the calling code is wrong. Assertions should never be seen by end users.Code:#include <assert.h> ... int foo( char *p ) { assert(p != NULL); ... }
My best code is written with the delete key.
That's odd, the amount of times I've seen them in release programs I thought they were an integral part of MS Visual C++ Runtime (MSVCRT.DLL). That and null pointer assignments.Originally Posted by Prelude
Usually I just test specific cases and if there's a problem I just open up a message box and swear at myself. Oh well...
>That's odd, the amount of times I've seen them in release programs I thought they were an integral part of MS Visual C++ Runtime (MSVCRT.DLL).
This would be funny without any additional comment, but I feel the need to bring it to everyone's attention nonetheless.
My best code is written with the delete key.
As a former UO addict, roleplayer and geek, that site made my day. Great stuff
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.