https://issues.dlang.org/show_bug.cgi?id=8381
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=8381
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|unspecified |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=8381
David Piepgrass qwertie...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #2 from David Piepgrass qwertie...@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
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #3 from Tommi tommitiss...@hotmail.com 2012-07-12 10:08:16 PDT ---
(In reply to comment #1)
- The rule is non-obvious. How could a new developer possibly guess that this
happens?
You could also argue that it's not obvious that:
http://d.puremagic.com/issues/show_bug.cgi?id=8381
deadalnix deadal...@gmail.com changed:
What|Removed |Added
CC||deadal...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #5 from Tommi tommitiss...@hotmail.com 2012-07-12 10:50:58 PDT ---
One small point I forgot to mention about my lowering proposal, which is that
besides adding static pseudo-member functions, you can also add types. For
example:
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #6 from David Piepgrass qwertie...@gmail.com 2012-07-12 12:06:36
PDT ---
Argh, so many typos, I should be careful when I rename things...
// Static helper method provides an easy way to create MyClass
public static Foo
http://d.puremagic.com/issues/show_bug.cgi?id=8381
--- Comment #7 from David Piepgrass qwertie...@gmail.com 2012-07-12 12:21:21
PDT ---
It almost looks like we're trying to pass MyType as first argument to the
function, but because we can't pass type as function argument, we pass it as