Another foolish idea for manifest constants

Bruce Adams tortoise_74 at yeah.who.co.uk
Sat Dec 8 15:47:07 PST 2007


A 'manifest' constant is one that is never allowed to use any storage.  
There is
one 'type' for which this is already true - void.
So how about:

void int x = 3;

This is a non-breaking change as using void this way is a syntax error.
Granted void is not a storage class.



More information about the Digitalmars-d mailing list