[Issue 2945] Precedence of 'new' vs '.'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 6 07:05:16 PDT 2009


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





------- Comment #3 from schveiguy at yahoo.com  2009-05-06 09:05 -------
(In reply to comment #2)
> Ceraintly. However, new MyClass().Foo; has no such ambiguity until D becomes
> capable of returning types from functions.

Traditionally, runtime reflection like that is done by calling methods on the
returned type, not by using a compile-time operator.

So it would look more like:

MyClass.Foo.instantiate();


-- 



More information about the Digitalmars-d-bugs mailing list