define should be the keyword for manifest constants
Russell Lewis
webmaster at villagersonline.com
Thu Dec 13 12:31:36 PST 2007
I thought about suggesting this, but what turned me off to it was this
declaration:
define int x = some_compile_time_func();
A C/C++ programmer will probably think of this as a #define-style
substitution, which means that he will expect the function to run every
time that he uses the constant. However, what we are trying to declare
is a manifest constant. It seemed like it would introduce confusion.
Just my $.02,
Russ
More information about the Digitalmars-d
mailing list