Auto syntax revisited

Sean Kelly sean at f4.ca
Mon Feb 20 14:47:25 PST 2006


Charles wrote:
>> auto foo = local Bar();
> 
> This gets my vote , but why is everyone using 'auto' ( deduction )keyword
> here, gets a little confusing since you're trying to replace the other auto
> with local.  ( For people not in on the #d discussion ).

Just to make things extra confusing :-)

> MyClass foo = local MyClass("parameters");
> 
> yes ?
> 
> So 'local' replaces 'new' for stack based allocations.

Yes.


Sean



More information about the Digitalmars-d mailing list