Extended Type Design - existing keywords
Benji Smith
dlanguage at benjismith.net
Fri Mar 16 15:18:54 PDT 2007
kris wrote:
> How about this? Using existing keywords, with a rename of "const":
>
> 1) final - rebinding of a value to a name
> 2) invariant - a read-only view of a data structure
> 3) constant - a value that never changes
Actually, that's pretty good too. Getting rid of the keyword "const"
would definitely highlight that something is different between D's
const-ness and the const-ness in other (anachronistic ;-) ) languages.
--benji
More information about the Digitalmars-d
mailing list