D Editions
Atila Neves
atila.neves at gmail.com
Mon Dec 30 15:49:52 UTC 2024
On Saturday, 28 December 2024 at 02:03:57 UTC, Timon Gehr wrote:
> 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).
Ok. What do you propose we do, then? Because AFAICT none of the
current mechanisms will work for this.
More information about the dip.ideas
mailing list