Seems like everybody's proposing const ... so here's another one
Mike
vertex at gmx.at
Fri Dec 7 08:10:52 PST 2007
Why not keep the simple things simple?
const int simple_pi = 3;
Const, final and invariant have "default" meanings, whatever Walter thinks
makes the most sense. If you have the need to be specific about constness,
you use:
const(head: mutable, tail: invariant) [...];
It is aliasable of course.
alias const(head: random, tail: pay-per-view) my_silly_const; // (*)
my_silly_const [...];
What do you think?
-Mike
(*) Disclaimer: I don't mean to be sarcastic, it's just a silly joke
because it's friday :)
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list