Variable assignment in “if” condition in Dlang

Adam D. Ruppe destructionator at gmail.com
Sun May 3 15:27:35 UTC 2020


On Sunday, 3 May 2020 at 14:53:21 UTC, Baby Beaker wrote:
> How can I assign a variable in “if” condition in Dlang?

depends on exactly what there's also

if ( (a = 10) )

with extra parens for special purposes


More information about the Digitalmars-d-learn mailing list