Please improve the with statement by allowing initialisation

Dejan Lekic dejan.lekic at gmail.com
Thu Mar 13 14:52:54 UTC 2025


On Thursday, 13 March 2025 at 12:38:51 UTC, Basile B. wrote:
> What you want has nothing to do with the WithStatement, what 
> you want is "inline variables", i.e a VariableDeclaration as an 
> Expression.

Thanks for clearing that up! :) I am not a language expert so I 
do not know the terminology. Obviously I want something similar 
to what the [for 
statement](https://dlang.org/spec/statement.html#for-statement) 
gives us - ability to initialise the variable and use it in 
inside the block.


More information about the Digitalmars-d mailing list