Auto syntax revisited
Mike Capp
mike.capp at gmail.com
Mon Feb 20 15:12:28 PST 2006
In article <dtdb2e$2lsp$1 at digitaldaemon.com>, Sean Kelly says...
>
>If we're moving towards stack-based auto classes then I'd prefer the
>distinction be associated with the object and not the reference. ie.
>
>auto foo = local Bar();
>
>I think the distinction is important because foo can be reassigned to a
>non-local object.
Not currently, it can't. From http://www.digitalmars.com/d/attribute.html#auto :
"Assignment to an auto, other than initialization, is not allowed."
cheers,
Mike
More information about the Digitalmars-d
mailing list