[Issue 5279] Function-static associative arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 26 16:38:45 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5279



--- Comment #5 from bearophile_hugs at eml.cc 2010-11-26 16:37:20 PST ---
(In reply to comment #3) by Jonathan M Davis:

> So essentially, you want static local variables to have access to a static
> constructor like all of the other variables with global lifetime do. Given that
> that breaks the scoping rules, I'm not sure that it's exactly a good idea.

I don't fully understand what you say, but I think you have misunderstood me.
Surely I have never asked to break scoping rules.

----------------------

(In reply to comment #4) nfxjfg:

> Wouldn't that lead exactly to the same race condition prone crap C++ is doing
> when it comes to initialization of static variables inside functions?

I don't know. If are sure that happens then please close this enhancement
request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list