Raised This Month: $ Target: $400
 0% 

Cleaning a bit of memory by "const" or "#define"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-28-2012 , 18:42   Re: Cleaning a bit of memory by "const" or "#define"
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
In such case, meaning defining a simple value, both #define and const are equivalent.
In others words, both values will be replaced at compilation time.
I always thought that constants were actually variable and were not retrieved until execution. Is this a special case for Pawn or does it also do it at compile time for other languages too?
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode