[Issue 5868] static attribute ignored with public static {} blocks

2012-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #12 from yeb

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 --- Comment #11 from Jonathan M Davis 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 compiler errored out on

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-27 Thread d-bugmail
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 appear

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
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

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #8

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
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) {

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 --- Comment #6 from Walter Bright 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 receiving this mail beca

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
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 th

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 5868] static attribute ignored with public static {} blocks

2012-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Com

[Issue 5868] static attribute ignored with public static {} blocks

2011-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5868 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #1 from Don 2