D Editions
Dukc
ajieskola at gmail.com
Tue Jun 4 13:30:37 UTC 2024
Atila Neves kirjoitti 3.6.2024 klo 19.05:
>> - How would a library expose different interfaces to importers that
>> use different editions? (This may be required because different
>> editions allow different interface designs and guarantees, or have a
>> different user-accessible druntime interface and e.g. druntime types
>> are in the library API.)
>
> Good question. I guess we'll need some kind of `version(Edition2024)`.
This doesn't work, except for mixins. A version block will be turned on
or off based on edition of the library, not of the client - or at least
that's what I'd expect.
See my idea about `__EDITION__` special token earlier in this thread for
an alternative.
More information about the dip.ideas
mailing list