Array of Algebraic argument syntax

Kasra Sadeghi kasra.sadeghi1 at gmail.com
Tue Sep 22 21:53:36 UTC 2020


On Tuesday, 22 September 2020 at 21:36:48 UTC, Ali Çehreli wrote:
> ...
> alias Value = Algebraic!(int, double, string, None);
> ...
> void main() {
>   printValue([Value(4.5), Value("hello"), Value(42)]);
> }

Thanks! Wish there was a less redundant syntax for the arrays.




More information about the Digitalmars-d-learn mailing list