Problem with using std.math: abs and std.complex: abs at the same time
Andrea Fontana
nospam at example.com
Wed Sep 18 12:07:10 UTC 2019
On Wednesday, 18 September 2019 at 12:03:28 UTC, berni wrote:
> The following code doesn't compile:
>
>>import std.stdio;
>>
>>void main()
>>{
>> import std.complex: abs, complex;
>> import std.math: abs;
>>
>> auto a = complex(1.0,1.0);
>> auto b = 1.0;
>>
>> writeln(abs(a));
>> writeln(abs(b));
>>}
What about https://run.dlang.io/is/PGasQD ?
More information about the Digitalmars-d-learn
mailing list