http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #10 from hst...@quickfur.ath.cx 2012-01-27 21:12:58 PST ---
Yeah, invalid attributes should not be ignored. They should always generate a
compile-time error. Just as expressions with no side-effects generate an error
when they
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #11 from Jonathan M Davis jmdavisp...@gmx.com 2012-01-27 21:24:48
PST ---
There are arguments for it which relate to generic programming. It's not that
hard to end up with templated code that would have issues compiling if the
http://d.puremagic.com/issues/show_bug.cgi?id=5868
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||yebbl...@gmail.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=5868
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
---
http://d.puremagic.com/issues/show_bug.cgi?id=5868
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #4 from hst...@quickfur.ath.cx 2012-01-26 12:35:32 PST ---
So the right syntax is:
class A {
static {
...
static this() { ... }
...
}
}
?
Or alternatively
class A {
static { ... }
static
http://d.puremagic.com/issues/show_bug.cgi?id=5868
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #6 from Walter Bright bugzi...@digitalmars.com 2012-01-26
17:19:02 PST ---
I don't think there's anything wrong with the current setup.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #7 from hst...@quickfur.ath.cx 2012-01-26 17:44:20 PST ---
There's nothing technically wrong with it, but it's misleading. When you write:
class A {
int x;
this(int) { ... }
static {
int y;
this(uint) {
http://d.puremagic.com/issues/show_bug.cgi?id=5868
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #9 from bearophile_h...@eml.cc 2012-01-26 18:07:08 PST ---
(In reply to comment #7)
There's nothing technically wrong with it, but it's misleading.
I think here there's material for a diagnostic enhancement request.
(In reply to
http://d.puremagic.com/issues/show_bug.cgi?id=5868
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
12 matches
Mail list logo