digitalmars.D.learn - Just a matter of parentheses
- bearophile (11/11) Jul 27 2012 This works in DMD 2.059, but it doesn't in dmd 2.060beta:
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (6/16) Jul 27 2012 Yes. keys is specifically meant to be a property.
- bearophile (4/5) Jul 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8453
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
Jul 27 2012
On 27-07-2012 17:23, bearophile wrote:
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
Yes. keys is specifically meant to be a property.
--
Alex Rønne Petersen
alex lycus.org
http://lycus.org
Jul 27 2012
Alex Rønne Petersen:Yes. keys is specifically meant to be a property.http://d.puremagic.com/issues/show_bug.cgi?id=8453 Bye, bearophile
Jul 27 2012








"bearophile" <bearophileHUGS lycos.com>