The value someOtherBaz.barwill be 3.
Static objects in the translation block are built in the order in which they appear in TU (note: in different translation units there is no specific order of the static object).
- First
bazwill be constructed using the default constructor. This will set baz.barto 3. someOtherBaz . , , . someOtherBaz.bar 3.- ,
placeholder baz.SetBar, baz ( someOtherBaz, , someOtherBaz baz, , ).
, :
baz.bar: 4
someOtherBaz.bar: 3
placeholder: 4