Blog post on fearless (library for @safe sharing)

Dukc ajieskola at gmail.com
Wed Nov 7 11:08:34 UTC 2018


On Wednesday, 7 November 2018 at 10:58:35 UTC, Atila Neves wrote:
> Definitely worth it.

Nice to hear. And nice that you put it to use!

> I'm still unclear on the non-transitivity of scope and exactly 
> what the consequences of this rule:
>
> 3. A scope variable cannot be initialized with the address of a 
> scope variable. (If it did it would lose the scope attribute of 
> the latter's contents.)

I can neither undertand that. If you initialize a scope variable, 
it should be guaranteed to have a shorter lifetime than any 
pre-existing variable, so it should not be a problem to use 
pre-existing addresses (as I understand it).


More information about the Digitalmars-d-announce mailing list