@api: One attribute to rule them All
Zach the Mystic via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 7 20:43:48 PST 2015
Martin Nowak is the one who created the issue for this
enhancement request:
https://issues.dlang.org/show_bug.cgi?id=10979
He proposes a different solution though - creating two mangled
names for each function. The advantage, as far as I can see it,
is that you wouldn't even have to add "@api" or "extern(noinfer)"
to link properly. I see two disadvantages: the binary would
suffer bloat, and the generated .di signatures would have to
default to the conservative explicit signature, since is could
not include both signatures without causing a duplicate
definition.
More information about the Digitalmars-d
mailing list