D const design rationale
    Carlos Santander 
    csantander619 at gmail.com
       
    Fri Jun 22 12:00:01 PDT 2007
    
    
  
Walter Bright escribió:
> Sean Kelly wrote:
>> I personally find the use of three keywords to represent three 
>> overlapping facets of const behavior to be very confusing, and am 
>> concerned about trying to explain it to novice programmers.  With 
>> three keywords, there are six possible combinations:
>>
>> final
>> const invariant
>> final const
>> final invariant
>> const invariant
>> final const invariant
> 
> Probably the thing to do is simply outlaw using more than one.
> 
How does that fit with "in" meaning "final const scope"? Will it change?
-- 
Carlos Santander Bernal
    
    
More information about the Digitalmars-d
mailing list