Is it possible to assign a Comma Expression to a variable?

Vladimir Panteleev thecybershadow.lists at gmail.com
Tue Nov 29 23:37:24 UTC 2022


On Tuesday, 29 November 2022 at 21:24:43 UTC, Lucian Danescu 
wrote:
> I just wanted to make sure that it is impossible to assign a 
> comma expression to a variable, or if it is possible, can 
> someone please clarify when and maybe give an example?

As a workaround, you can use a function:

https://github.com/CyberShadow/ae/blob/86b016fd258ebc26f0da3239a6332c4ebecd3215/utils/meta/package.d#L526-L554



More information about the Digitalmars-d mailing list