May 06, 2009 Re: Precedence of 'new' vs '.' | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Eldar Insafutdinov | "Eldar Insafutdinov" <e.insafutdinov@gmail.com> wrote in message news:gtrooc$2ff9$1@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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply