[Issue 8381] Uniform function call syntax (pseudo member) enhancement suggestions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 12 09:24:38 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #2 from David Piepgrass <qwertie256 at gmail.com> 2012-07-12 09:24:36 PDT ---
> (not merely a @disabled default constructor, but no constructor at all).
Also, declaring an instance of a static class is not possible either, so that
given
> module Q;
> static class Foo {
> static P.Foo new(Bar b, Baz z) {
> ...
> return new P.Foo(...);
> }
>}
The meaning is unambiguous in:
Foo f = new Foo(Bar(...), Baz(...));
// equivalent to P.Foo f = Q.Foo.new(Bar(...), Baz(...));
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list