Meaning of shared when its position is changed
tcak
tcak at pcak.com
Thu Feb 13 01:34:57 PST 2014
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.
More information about the Digitalmars-d-learn
mailing list