January 26th, 2013, 08:33 AM
I know these techniques. The early Pentium processors didn't support out-of-order execution, so they were crucial to get decent performance out of them by placing independent instructions next to...
January 25th, 2013, 06:24 AM
Then it's a static method? Technically that's pretty much the same as a parameterless instance method, mostly making a stylistic difference.
Can't say anything about the other paths, of...
January 24th, 2013, 05:45 AM
You probably already considered this, yet a word of caution: If the Destroy() method shall contain a delete this; statement, of course the method must only be called on objects that have been...
January 23rd, 2013, 09:44 AM
Ok, let's start at the end of your post...
That's how I was already understanding it. We're talking about a native object here, and the CLR may deal with the object in several ways, including...
January 22nd, 2013, 07:02 PM
Your destructor is responsible for releasing resources your object allocated itself explicitly, but not for de-allocating the object (*this) itself. And generally, it isn't able to properly do that...