Walter: Before you go and implement the new RAII syntax..
Garett Bass
garettbass at studiotekne.com
Wed Sep 6 16:15:41 PDT 2006
I wasn't aware of that, pretty cool! In this case, perhaps do away with the old local-scope meaning of 'auto' altogether.
Chris Nicholson-Sauls wrote:
>
> The following works right now, and does so just fine:
> Foo foo = SomeFactory.newFoo(...); scope(exit) delete foo;
> char[] a = read(filename); scope(exit) delete a;
>
> -- Chris Nicholson-Sauls
More information about the Digitalmars-d
mailing list