Automatic variable declaration

Zoadian no at no.no
Thu Aug 16 19:14:01 UTC 2018


On Wednesday, 15 August 2018 at 14:58:40 UTC, Everlast wrote:
> Many times one must create a variable before a function call:
>
>
>   int x = 3;
>   foo(x);
>   writeln(x);
>
> [...]

check this out:

void main() {
     import std.stdio;
     writeln = 4;
}

https://run.dlang.io/is/0wgWtw


More information about the Digitalmars-d mailing list