PDA

View Full Version : New Attributes - Initial Value


MogHughson
28th Dec 2008, 2:30 PM
Can you assume that new attributes take an initial value of zero? From my testing it certainly appears that way, but I know better from other programming languages than to assume so. Anyone got a more concrete view?

Cheers
Mog

Inge Jones
28th Dec 2008, 4:44 PM
They do seem to usually. But I never trust it, I always initialise.

J. M. Pescado
29th Dec 2008, 1:04 PM
Can you assume that new attributes take an initial value of zero? From my testing it certainly appears that way, but I know better from other programming languages than to assume so. Anyone got a more concrete view?EAxis appears to treat new attributes this way. However, I never assume it to be so and always explicitly initialize.