Is it true scope declarations are being removed?

Steven Schveighoffer schveiguy at yahoo.com
Mon Jan 24 05:15:13 PST 2011


On Sun, 23 Jan 2011 19:03:19 -0500, so <so at so.do> wrote:

> On Mon, 24 Jan 2011 00:11:48 +0200, Trass3r <un at known.com> wrote:
>
>> Sadly true.
>> They intend to replace it with a library based solution, I don't know  
>> why.
>
> If the library solution is as good as the original, it is a big plus.
> If only we could do the same for everything!

In fact the library solution will be better, because it's an expression,  
not a storage class.

This means, you can "scope" a class inside another statement instead of  
having to declare/initialize it separately.  It solves a bug I filed:

http://d.puremagic.com/issues/show_bug.cgi?id=2070

-Steve


More information about the Digitalmars-d mailing list