digitalmars.D - Attributes on static constructors
- Brian Schott (6/6) Feb 06 2016 std.socket has a line that looks like this:
- Brian Schott (2/4) Feb 06 2016 And by that I mean "static and shared static destructors".
- Jakob Ovrum (4/10) Feb 06 2016 I'm not sure what you mean. Looking at the section you linked, it
- Brian Schott (2/3) Feb 09 2016 Filed here: https://issues.dlang.org/show_bug.cgi?id=15666
std.socket has a line that looks like this: shared static this() system http://dlang.org/spec/grammar.html#StaticConstructor states that function attributes are only valid on "static" and "shared static". Compiler bug or spec bug?
Feb 06 2016
On Sunday, 7 February 2016 at 06:15:29 UTC, Brian Schott wrote:... that function attributes are only valid on "static" and "shared static".And by that I mean "static and shared static destructors".
Feb 06 2016
On Sunday, 7 February 2016 at 06:15:29 UTC, Brian Schott wrote:std.socket has a line that looks like this: shared static this() system http://dlang.org/spec/grammar.html#StaticConstructor states that function attributes are only valid on "static" and "shared static". Compiler bug or spec bug?I'm not sure what you mean. Looking at the section you linked, it looks like the issue is that it states that function attributes are only valid for module destructors. Seems like an oversight.
Feb 06 2016
On Sunday, 7 February 2016 at 06:15:29 UTC, Brian Schott wrote:Compiler bug or spec bug?Filed here: https://issues.dlang.org/show_bug.cgi?id=15666
Feb 09 2016