TypeFunction example creatiing a conversion matrix

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 1 19:15:10 UTC 2020


On 10/1/20 3:01 PM, Steven Schveighoffer wrote:
> "solving the Variant problem" needs a problem definition first.

Problem definition: Implement Variant.get correctly. :o)

E.g. this produces a type error somewhere in the innards of std.variant: 
https://run.dlang.io/is/joIbeV. I'm not sure how many other cases are 
out there.

BTW thanks Steve for choosing the right angle. This is not a contest, 
and not a search for the proverbial nails for the use of a given hammer. 
The converse approach is best - find what the difficult related problems 
are, and figure how to solve them well.


More information about the Digitalmars-d mailing list