Worst ideas/features in programming languages?
Stefan Koch
uplink.coder at gmail.com
Wed Nov 10 14:15:58 UTC 2021
On Wednesday, 10 November 2021 at 07:09:34 UTC, Timon Gehr wrote:
> On 10/16/21 1:12 AM, Walter Bright wrote:
>> On 10/12/2021 2:38 PM, Timon Gehr wrote:
>>> - non-lexical variable lifetimes (probably not happening)
>>
>> It's already implemented for @live.
>
>
> Specifically, I would like it to influence scoping.
>
> ```d
> int x=2;
> int y=move(x);
> int z=x; // error: undefined identifier x (was moved away)
>
> int y=move(y); // ok
> ```
That would be a good start. I would support that.
More information about the Digitalmars-d
mailing list