Editions Ideas
Nick Treleaven
nick at geany.org
Fri Jan 16 20:59:02 UTC 2026
On Friday, 16 January 2026 at 18:23:05 UTC, Quirin Schroll wrote:
> Replace magic properties with keywords and traits. For example,
> `T.init` should be `default(T)`. The problem is that you can
> define an eponymous member.
I think removing support in an edition for `.init` would be very
disruptive. Why not just ban redefining it?
https://github.com/dlang/dmd/issues/18386
> `T.sizeof` should be `__traits(sizeof, T)`.
Redefining `sizeof` is already an error.
More information about the Digitalmars-d
mailing list