On Mon, 24 Jan 2011 09:41:30 -0500, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote:

On 1/24/11, Steven Schveighoffer <schvei...@yahoo.com> wrote:
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


That is pretty cool. What I worried about is that a library solution
could mean loosing help from the compiler itself. E.g. if the compiler
sees a scoped variable it can do some checks to see that you're not
escaping a reference by accident, inadvertently assigning it to a
global, or some other sanity checks. I guess these things might be
doable in a library but I don't know to what extent.

That wasn't done by the compiler anyways.

-Steve

Reply via email to