auto auto again
Charles
nonone at nowhere.com
Fri Aug 18 18:55:04 PDT 2006
I agree, it certainly is easy to miss. I imagine he doesn't want to
introduce a new keyword for it , but renox's syntax of := I think is an
elegant solution !
Jarrett Billingsley wrote:
> "renox" <renosky at free.fr> wrote in message
> news:ec2of6$2rj6$1 at digitaldaemon.com...
>
>> If memory serves, Walter current view is:
>> a) For stack variable MyClass c = MyClass(); or auto c = MyClass();
>> and
>> b) For global variable MyClass c = new MyClass(); or auto c = new
>> MyClass();
>
> I don't know why he likes that syntax. He's a big opponent of
> "easy-to-mess-up" syntax, and I sure can't see much of a difference between
> "c = MyClass()" and "c = new MyClass()".
>
>
More information about the Digitalmars-d
mailing list