On 1/24/11, Steven Schveighoffer <[email protected]> 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.
