Extended Type Design.

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Mar 16 14:43:16 PDT 2007


Benji Smith wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>> Benji Smith wrote:
>>> I should also add that, in my opinion, any design where "const" means 
>>> something other than "value resolved at compile time and immutable at 
>>> runtime" would be a mistake.
>>
>> Then how would you call "value that's not mutable through this alias" 
>> in a way that's not going to turn C++ immigrants away?
>>
>> Andrei
> 
> I have no special love (nor contempt, of course) for C++ immigrants and 
> don't really care whether D conforms to their expectations.
> 
> I thought the point of D was to fix broken constructs from C++, and most 
> C++ programmers I know consider its implementation of const (and 
> especially how casting affects const) to be one of the prime offenders.
> 
> --benji

Same opinion here. What makes D good is fixing broken constructs from C++.
-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list