February 13, 2014 Meaning of shared when its position is changed | ||||
---|---|---|---|---|
| ||||
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. |
February 13, 2014 Re: Meaning of shared when its position is changed | ||||
---|---|---|---|---|
| ||||
Posted in reply to tcak | tcak:
> I didn't see any information about position of keywords in documentation.
It's a compiler bug. And it's in Bugzilla since some years.
Bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation