a more consistent const syntax
Reiner Pope
some at address.com
Tue Aug 7 02:40:08 PDT 2007
Walter Bright wrote:
> I realize there are some consistency issues with the current syntax for
> const, but it is more complicated than expected. Your idea to separate
> out compile time constants with a new keyword is a good one, and is
> similar to one Andrei came up with (using alias).
If anyone is interested, there was a brief discussion on this in the D
Const Design Rationale thread here:
http://www.digitalmars.com/d/archives/digitalmars/D/D_const_design_rationale_54725.html#N54844
Interestingly, the use of both 'define' and 'alias' were suggested (as
well as a 'literal' keyword), so it seems like those two might be quite
intuitive syntaxes.
-- Reiner
More information about the Digitalmars-d
mailing list