const question/suggestion
Myron Alexander
someone at somewhere.com
Mon Jun 18 15:12:51 PDT 2007
Walter Bright wrote:
> Myron Alexander wrote:
>> const var = new SomeObject ();
>
> The above line will fail because const declarations can only be
> initialized with something that can be evaluated at compile time. The
> example should be:
>
> const(SomeObject) var = new SomeObject();
>
>> var.changesomething() -- fails
Thanks for the correction.
Regards,
Myron.
More information about the Digitalmars-d-announce
mailing list