
2 Jun
2005
2 Jun
'05
8:42 a.m.
"Neal Becker" <ndbecker2@gmail.com> wrote
I still disagree. Depending on default initialization is like depending on init of static variables to 0. If you really need a special init value, be explicit and say so. I see no logic to the default construct of complex to have 0 value. The only logic to default construct values I can see is where there truly is a sensible default for a parameter.
A variable randomly initialised by the previous contents of the memory location will give random results. Default initialisation automatically gives a known repeatable value. regards Andy Little