Explicit memory deallocation (nitpick)
Jarrett Billingsley
kb3ctd2 at yahoo.com
Tue Mar 11 13:02:16 PDT 2008
"Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message
news:fr6mbu$1pvd$1 at digitalmars.com...
> I think that's only true for the case where it is part of the class
> definition. As in:
>
> scope class Foo {...}
>
Actually the class doesn't even have to be "scope" and the distinction is a
bit weirder.
auto f = new Foo();
will not make it scoped, and just performs type inference.
auto Foo f = new Foo();
_is_ scoped. Why? I don't know. Left in there? Intentional? fuh.
More information about the Digitalmars-d
mailing list