On 22/07/2010 07:54, Dave wrote:
On 7/21/2010 7:27 PM, awishformore wrote:
On 22/07/2010 03:36, Sean Kelly wrote:
Make the ctors "shared static this()" -- those are only constructed
once when the process starts up. The non-shared static ctors are
thread-local.
That concept is really weird, though. So this applies to anything
static, not just variables?
I had the same issue, I believe this pretty much explains it all:
http://www.digitalmars.com/d/2.0/migrate-to-shared.html
I read that page about a million times already, and it pretty much
explains nothing. Where does this page even mention shared functions,
structs, classes or objects?
The same goes for TDPL by Andrei. It's a bit more elaborate, but it
still doesn't even get close to explaining shared in detail.
/Max