Why are scope variables being deprecated?

Piotr Szturmaj bncrbme at jadamspam.pl
Wed Oct 10 09:37:20 PDT 2012


bearophile wrote:
> Piotr Szturmaj:
>
>> It seems that we ended up with a solution that was meant to fix a
>> language builtin but appears to be worse than that.
>
> This is true, currently the library solution is worse (more dangerous
> and more broken) than the precedent built-in feature. But there is hope
> to have a good solution someday (mixing library code and some kind of
> built-support), while a broken built-in is not good. Andrei did the
> right thing: if you don't have a feature it's kind of easy to add
> something, while fixing some bad built-in is rather harder.

Wasn't it broken because preventing escaping of scoped references was 
not implemented?


More information about the Digitalmars-d-learn mailing list