sumtype 1.0.0
sarn
sarn at theartofmachinery.com
Wed Nov 25 00:56:39 UTC 2020
On Wednesday, 25 November 2020 at 00:20:54 UTC, Paul Backus wrote:
> The exact memory layout and ABI of SumType is deliberately left
> unspecified. It's an implementation detail that client code
> isn't supposed to rely on. If you want to pass a SumType's
> value to a C function, you will first have to extract it using
> pattern matching.
Is that also true of the version being merged into Phobos?
Specifically talking about the Phobos version and not the
code.dlang.org version, what might change the ABI?
An example of where someone would care would be D code with a
plugin system, or even a shared library with functions that take
SumType instances as parameters.
More information about the Digitalmars-d-announce
mailing list