Just a matter of parentheses

bearophile bearophileHUGS at lycos.com
Fri Jul 27 08:23:09 PDT 2012


This works in DMD 2.059, but it doesn't in dmd 2.060beta:


import std.algorithm: sort;
void main() {
     int[int] foo;
     auto bar1 = foo.keys().sort(); // OK
     auto bar2 = foo.keys.sort(); // Error: function expected 
before ()...
}


Do you think this should be filed as regression?

Bye,
bearophile



More information about the Digitalmars-d-learn mailing list