Editions Ideas

Nick Treleaven nick at geany.org
Tue Dec 16 20:11:26 UTC 2025


On Monday, 15 December 2025 at 21:30:18 UTC, Dukc wrote:
>  - Maybe C-style alias declarations. The parser will still have 
> to recognise them as it can't know which edition the file has 
> but still.

https://github.com/dlang/dmd/pull/22244

The parser can tell when it is specified in the file. The 
compiler should set the `Module.edition` field before the parser 
receives the `Module` instance when a matching `-edition` or `-E` 
flag is passed. AFAICT `-edition` seems to be supported but 
ignored currently in recent git dmd, and `-E` isn't implemented. 
I'll file a bug.

...
>  - `@safe` external functions that don't have a D linkage (they 
> would have to be designated `@trusted` instead).

+1



More information about the Digitalmars-d mailing list