NeoDreamer
April 14th, 2009, 05:07 PM
Does using "this->" slow down your program because it has to dereference a pointer? Or does the compiler understand and automatically remove all of this->? I just like putting this-> for clearly differenciating local variables and member fields.
MTsoul
April 14th, 2009, 05:43 PM
There is no additional overhead by using ->, but you get overhead regardless since the program has to dereference it at run time.
NeoDreamer, I suggest you pick up a book on C++ and breeze through it. It seems like you've got the basic down, but are curious about some syntax-related stuff.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.