[Issue 1466] Spec claims maximal munch technique always works: not for "1..3"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 9 10:26:05 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1466





------- Comment #7 from matti.niemenmaa+dbugzilla at iki.fi  2007-09-09 12:26 -------
Here's some example code underlining the issue:

class Foo {
        static int opSlice(double a, double b) {
                return 0;
        }
}

void main() {
        // works
        assert (Foo[0. .. 1] == 0);
        // thinks it's [0 ... 1], no maximal munch taking place
        assert (Foo[0... 1] == 0);
}


-- 



More information about the Digitalmars-d-bugs mailing list