Is it true scope declarations are being removed?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Jan 24 06:41:30 PST 2011


On 1/24/11, Steven Schveighoffer <schveiguy at 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.


More information about the Digitalmars-d mailing list