Explicit memory deallocation (nitpick)
Bill Baxter
dnewsgroup at billbaxter.com
Tue Mar 11 12:25:49 PDT 2008
Sean Kelly wrote:
> == Quote from downs (default_357-line at yahoo.de)'s article
>> Unknown W. Brackets wrote:
>>> Lastly, if none of that helps, checking if you're using auto for
>>> automatic freeing.
>> Being a bit nitpicky, but auto is for pure type inference. Scope is for automatic freeing :)
>> It was changed a while back.
>
> Unfortunately, both still work.
I think that's only true for the case where it is part of the class
definition. As in:
scope class Foo {...}
For that, yes, auto class Foo{...} still works and means the same thing.
But that's the only case in which scope and auto are still
interchangeable, right?
Still I would have thought 'auto class' would have been removed at least
in the D2 branch. But I just tried it out and it's still there.
--bb
More information about the Digitalmars-d
mailing list