auto auto again

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Aug 18 18:44:19 PDT 2006


"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