https://issues.dlang.org/show_bug.cgi?id=15563
--- Comment #2 from RazvanN <[email protected]> --- The grammar [1] doesn't seem to support this. It seems that only member function attributes (those that refer to the context pointer - const, inout, immutable etc.) and safe, pure et al. are allowed as postfix qualifiers. Storage class qualifiers seem to be left out on purpose. I think the reasoning was that safe, pure, nothrow etc. can be used as pre- and post- fix qualifiers for any function, whereas const, inout etc. should only apply to the context pointer. It would be weird to see: void register(Socket s) pure nothrow synchronized @safe return {} although: void register(Socket s) pure nothrow const {} is equally weird. [1] https://dlang.org/spec/grammar.html#MemberFunctionAttributes --
