std.sumtype?
JN
666total at wp.pl
Mon Mar 22 19:24:54 UTC 2021
On Thursday, 18 March 2021 at 14:42:03 UTC, Oleg B wrote:
> Hello everyone.
>
> Went to see what is being prepared in the new compiler and saw
> this
> https://dlang.org/changelog/pending.html#std-sumtype
Does anyone know if it would be possible to make it support (it
doesn't support it now) this kind of syntax:
Temperature t1 = Fahrenheit(98.6);
isFahrenheit(t1); // works
isFahrenheit(Fahrenheit(98.6)); // doesn't work :(
More information about the Digitalmars-d
mailing list