Attributes on static constructors

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 6 22:15:29 PST 2016


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?


More information about the Digitalmars-d mailing list