so what exactly is const supposed to mean?

Bruno Medeiros brunodomedeirosATgmail at SPAM.com
Sun Jul 2 11:13:38 PDT 2006


Hasan Aljudy wrote:
> Ok, I know that the const issue has apparently been beaten to death on 
> the digitalmars.D NG, but ....
> 
> Can someone please explain to me what does const mean? and doesn't D 
> already have a const keyword?
> I think it's something from C++, no? what is it? what does it do? and 
> why do people think it's useful?
> 
> (hmm, I have a feeling that I've asked this before, but can't really 
> remember)
> 
> While you're at it, would you mind explaining the implications of 
> implemeting the proposed "const by default" feature?

The meaning of const depends on the language it is in. Are you asking 
about D's const or C++'s const (or other even)?

-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d-learn mailing list