Precedence of 'new' vs '.'

Nick Sabalausky a at a.a
Wed May 6 14:05:21 PDT 2009


"Eldar Insafutdinov" <e.insafutdinov at gmail.com> wrote in message 
news:gtrooc$2ff9$1 at digitalmars.com...
>
> Related problem:
>
> string str = "qwe rty uio";
> string[] arr = str.split(" "); // works
>
> class A {
>    string foo() { return "qwe rty uio"; }
> }
> A a = new A;
> a.foo.split(" "); // doesn't work

Unless I misunderstand your point, that's already in bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=2883





More information about the Digitalmars-d mailing list