const by default.

Sean Kelly sean at f4.ca
Mon Jul 3 13:55:45 PDT 2006


Rémy Mouëza wrote:
>
> Why couldn't we do it using the "in" keyword ?

It may or may not be ideal with respect to reference types (ie. classes) 
where 'inout' allows one to reassign the reference itself in addition to 
potentially mutating the referenced data.  I'm not certain whether this 
distinction is worth preserving or not.


Sean



More information about the Digitalmars-d mailing list