The following two function definitions. First one gives error, second one works. Can anyone tell me the difference between putting the "shared" keyword at the end of definition, and before static.

// this gives error message
// Error: semicolon expected following function declaration
private static this() shared{}


// this works correctly
private shared static this(){}


I didn't see any information about position of keywords in documentation.

Reply via email to