Natural selection 2D mockup
Post Reply
Quote
Re: Natural selection 2D mockup
Posted by Crono on Tue Jul 27th at 3:58am 2004


That totally depends on the compiler you're using.

Post fix does make three copies if you're not using some fancy (expensive) compiler. In which case, there buddy, you should know how to write code that works with all compilers. Believe me, it isn't an extinct issue. The compiler (whatever one you use) can't read your mind and go "Oh, he didn't really want three copies here". Most of the optimized ones have to be set up for you if you want it to act this way.

[NOTE]
Trust me, I spent like 2 months on this rediculous subject and read chapters upon chapters on it. It is less effecient, even if you overload it yourself (which if you overload the prefix you should overload the postfix)

Also, you'd be surprised how many books are flat out wrong when regarding C++ (Such as they say templates are a wonderful and EASY thing ... not true) [addsig]





Post Reply