Editions Ideas

jmh530 john.michael.hall at gmail.com
Tue Dec 16 21:12:16 UTC 2025


On Friday, 12 December 2025 at 23:05:27 UTC, Walter Bright wrote:
> Now that Editions have been implemented (thanks Atila, Dennis, 
> and Rikki) it's time to solicit D features to be dropped from 
> the next Edition of D.
>
> I'll start by eliminating -revert=intpromote

This may not be something worth pursuing for the first edition, 
given the ideas thrown around already, but I was reading about 
Odin's context system [1, 2] and found it interesting.

The idea is that functions include "a pointer to the current 
context as an implicit additional argument.". It looks to be 
helpful with managing allocators.

Obviously, if you just move straight to this, you could break a 
lot of code. But you could introduce an `extern(D-context)` so 
that people could opt-in to this implicit context approach.

Or maybe there's an even better way to do this that makes the 
most sense for D. It at least seems better than writing 
`theAllocator` everywhere. And if could get incorporated into how 
the GC is called, then maybe that would be a win too.


[1] https://odin-lang.org/docs/overview/
[2] 
https://www.gingerbill.org/article/2025/12/15/odins-most-misunderstood-feature-context/


More information about the Digitalmars-d mailing list