#define-like behavior

Jeremy jtbx at disroot.org
Tue Mar 14 05:47:35 UTC 2023


Hi, in C and C++ you can use #define to substitute a value in 
place of an identifier while preprocessing. If you initialize a 
new string and don't change its value after that, will the 
compiler substitute the string identifier with its value, like 
#define in C, or will it make a string in memory and refer to 
that?


More information about the Digitalmars-d-learn mailing list