functions cannot be const or auto

popka popka at dodgit.com
Fri Dec 14 12:54:25 PST 2007


Janice Caron Wrote:

> On 12/13/07, Jarrett Billingsley <kb3ctd2 at yahoo.com> wrote:
> > Only D2 has constness.
> 
> D1 still has the "const" keyword, which I'm sure is what's confusing
> popka. In D1, the const keyword is used for invariant data. (I'm not
> making this up! :-) ) I guess Walter was thinking ahead.
> 
> Anyway, I'm sure that the real problem here is - as /many/ people have
> pointed out - the default documentation is for D2, but the default
> download is D1. That's gotta confuse /any/ visitor. (It confused me!)

Thanks, both of you. I'll continue using version 1 without this feature as it seems Derelict does not support 2.0.



More information about the Digitalmars-d mailing list