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

Paul Backus snarwin at gmail.com
Mon Nov 25 15:09:46 UTC 2024


On Monday, 25 November 2024 at 14:24:44 UTC, Bastiaan Veelo wrote:
> I suspect a bug in conv.to, am I right?

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.


More information about the Digitalmars-d-learn mailing list