[Issue 13352] Algebraic does not support binary arithmetic when omitting small number types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 22 03:39:36 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13352

--- Comment #3 from Sönke Ludwig <sludwig at outerproduct.org> ---
Well, "Algebraic!(uint, int, long)" would have worked. The intention of
VariantN definitely is to make all operations transparently available, if you
look at the source code. I also don't see a reason why that would be harmful.
On the other hand, it can be extremely useful.

See for example the new std.data.json proposal, which is the reason for this
bug report. It allows "JSONValue" to be used in a much more convenient way.

--


More information about the Digitalmars-d-bugs mailing list