Is @live attribute working yet?

Paolo Invernizzi paolo.invernizzi at gmail.com
Sun Apr 24 14:18:18 UTC 2022


On Sunday, 24 April 2022 at 12:21:29 UTC, elfstone wrote:
> On Sunday, 24 April 2022 at 11:36:29 UTC, Paolo Invernizzi 
> wrote:
>> On Sunday, 24 April 2022 at 09:31:40 UTC, elfstone wrote:
>>>     [...]
>>
>> You need to use the flag `-preview=dip1021`
>>
>>   test.d(8,30): Error: variable `test.test.p` assigning to 
>> Owner without disposing of owned value
>
> Weird, it's still not working here. I have tried the flag with 
> dub, and dmd.

You are right with 2.099.1, it seems to be included in the 
2.100.0-beta.1 ...

   pinver at Moria test % /Users/pinver/dlang/dmd-2.099.1/osx/bin/dmd 
-preview=dip1021 -c -o- src/test.d
   pinver at Moria test % 
/Users/pinver/dlang/dmd-2.100.0-beta.1/osx/bin/dmd 
-preview=dip1021 -c -o- src/test.d
   src/test.d(8): Error: variable `test.test.p` assigning to Owner 
without disposing of owned value




More information about the Digitalmars-d-learn mailing list