cannot call impure function

Paul Backus snarwin at gmail.com
Sun Oct 4 17:01:44 UTC 2020


On Sunday, 4 October 2020 at 16:48:24 UTC, Michael wrote:
> Dear all,
>
> Sorry for the potentially stupid question, but I'm a complete 
> newbie to D. Why does compiling the following trivial code fail?
>
> import std.stdio;
>
> void main()
> {
>     writeln(3.14);
> }

Works fine for me using DMD 2.094.0 on Linux. What OS and 
compiler version are you using, and how did you install DMD?


More information about the Digitalmars-d-learn mailing list