'auto' keyword
kdevel
kdevel at vogtner.de
Sun Mar 12 16:09:58 UTC 2023
On Sunday, 12 March 2023 at 13:27:05 UTC, Adam D Ruppe wrote:
> [...] *any* storage class will work for type inference. [...]
After heaving read [1] I immediately thought of this:
void main ()
{
deprecated i = 3;
i = 4;
}
$ dmd test.d
test.d(4): Deprecation: variable `test.main.i` is deprecated
Does that make sense???
[1] https://issues.dlang.org/show_bug.cgi?id=7432
Issue 7432 - DMD allows variables to be declared as pure
More information about the Digitalmars-d-learn
mailing list