dmd 1.053 and 2.037 release

bearophile bearophileHUGS at lycos.com
Sat Dec 5 09:51:58 PST 2009


Ary Borenszweig:
> Can't "import std.math : pow;" be added to the current module when this 
> is needed?

Note that this code doesn't compile:

import std.stdio: writeln;
import std.math: pow;

void main() {
    writeln(5.2 ^^ 2);
}


This is what the compiler shows:
test.d(5): Error: undefined identifier module test.std
test.d(5): Error: no property 'math' for type 'void'
Error: no property 'pow' for type 'int'
test.d(5): Error: function expected before (), not __error of type int

Tool completed with exit code 1

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list