int x = auto

Nick Treleaven nick at geany.org
Fri Mar 24 13:50:56 UTC 2023


On Wednesday, 22 March 2023 at 20:31:47 UTC, John Colvin wrote:
> No problem, if you submit a DIP

There's a bugzilla issue preapproved by Walter with `auto ident = 
exp` syntax:
https://forum.dlang.org/post/mailman.493.1487193825.31550.digitalmars-d-bugs@puremagic.com

> and then go implement it in the compiler, because afaict that 
> doesn’t work at all at the moment.

There was already a pull request that was rejected before the 
preapproved status:
https://github.com/dlang/dmd/pull/2270

It allowed `ident = exp` and `storage_class ident = exp`. The 
former should be disallowed - use `auto` instead.


More information about the Digitalmars-d mailing list