| -----Original Message-----
| From: David Vandevoorde [mailto:
dav...@edg.com]
| Sent: Wednesday, June 18, 2014 4:33 AM
| To:
c++st...@accu.org
| Cc:
mod...@isocpp.org
| Subject: [c++std-ext-14932] Re: Initialization of global variables
|
| Sure, but that's really up to the TU (or module) writer. I think it's still highly
| desirable to provide whatever ordering guarantees across library imports that
| we can, and modules provide a fairly intuitive model for that.
OK, but that is different from a claim that we provide a reliable initialization order for global variables -- which is going to be further simplified by real programmers out there, only to be bitten in unsuspected way.
Modules may provide us a way to jump-start that process, but by themselves they don't solve the problem since the it is still there when only a single translation unit is of interest. Then we get the moral equivalent of
-- Gaby
|
| Daveed