What is "dual-context" ?
patric.dexheimer at gmail.com
Fri Sep 13 02:49:33 UTC 2019
source\app.d(37,10): Error: function `app.main.match!((some) =>
print(some), (none) => print("none")).match` requires a
dual-context, which is not yet supported by LDC
I was playing with my home made "sumtypes".
The code below works fine in dmd, but in ldc it triggers that
x.match!(some => print(some), none => print("none"));
What exactly is this "dual-context"?
More information about the Digitalmars-d-learn