D Editions
Timon Gehr
timon.gehr at gmx.ch
Sat Dec 28 02:03:57 UTC 2024
On 12/26/24 10:55, Atila Neves wrote:
>>
>> It may not be known at library compile time what edition the user will
>> be using, and there may be multiple different users on different
>> editions.
>
> Right, but not all edition-specific branches will need to compile in any
> one given compiler pass, right?
Well, I think if a library wants to branch on the edition of the caller,
all of those branches would need to be compiled when the library is
compiled. (Think druntime.)
Of course, the case where a library wants to branch on its own edition
is separate. There, not all branches will need to compile on any given
compiler invocation, though I am not sure that this is an important case
(as usually every piece of code just targets a specific edition).
More information about the dip.ideas
mailing list