const sucks

Bruno Medeiros brunodomedeiros+spam at com.gmail
Tue Oct 21 10:45:37 PDT 2008


Sean Kelly wrote:
> Bill Baxter wrote:
>>
>> I recall Walter's main argument against it was that local variable
>> really shouldn't be const-by-default since you're usually creating
>> them because you want to manipulate them.  But then you end up with a
>> system where local variable declarations and parameter declarations
>> follow very different rules.
> 
> Pure functions already work this way, so perhaps this isn't a big deal.
> 
> 
> Sean

Are you sure of that? Reading the latest about pure: 
http://dobbscodetalk.com/index.php?option=com_content&task=view&id=745&Itemid=
I don't see were you can infer that.

-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list