cannot call impure function

Michael trash at can.edu
Sun Oct 4 18:02:11 UTC 2020


On Sunday, 4 October 2020 at 17:43:13 UTC, Michael wrote:
> On Sunday, 4 October 2020 at 17:37:52 UTC, Mathias LANG wrote:
>> On Sunday, 4 October 2020 at 17:05:33 UTC, Michael wrote:
>>> On Sunday, 4 October 2020 at 17:01:44 UTC, Paul Backus wrote:
>>>> 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?
>>>
>>> DMD64 D Compiler v2.094.0
>>> on macOS 10.15.6
>>
>> I cannot reproduce locally (macOS 10.15.6 too). How did you 
>> install DMD ?
>
> I used the dmg file: dmd.2.094.0.dmg

I reinstalled using the installation script (install.sh) and now 
it works. Still don't know why the dmg-based intstallation did 
not work.
https://dlang.org/install.html

Anyway, thanks for your responses!


More information about the Digitalmars-d-learn mailing list