D const design rationale

Walter Bright newshound1 at digitalmars.com
Sat Jun 23 10:01:27 PDT 2007


BLS wrote:
> I am afraid you will not like this idea, but not afraid enough. <g>
> 
> Why not using a single keyword "const_" adding a number 1, 2, 3 to 
> represent :
> invariant, final, readonlyview.
> the higher the number the higher (the stronger) the const.
> means : const_3 == invariant;
> At least a mental help, IMO; somehow borrowed from Modula 2 processes.

You're right, I don't like the idea <g>.



More information about the Digitalmars-d mailing list