only parameters or stack-based variables can be `inout`

Bastiaan Veelo Bastiaan at Veelo.net
Mon Nov 25 17:06:57 UTC 2024


On Monday, 25 November 2024 at 15:09:46 UTC, Paul Backus wrote:
> Yes, this is a bug. Because of the weird restrictions on 
> `inout`, it's very easy to write template code that doesn't 
> handle it correctly.

I see you reported it. Thank you.
https://issues.dlang.org/show_bug.cgi?id=24880

-- Bastiaan.


More information about the Digitalmars-d-learn mailing list