Initialization of doubles
Initialization of doubles
- Subject: Initialization of doubles
- From: Rob Rix <email@hidden>
- Date: Fri, 7 Sep 2001 15:38:29 -0400
Hello, all.
I'm implementing a class that has 12 double values (it's a matrix class,
for 3D affine transforms). In the init method, only 3 of them need to be
initialized to something other than zero.
I think I recall reading that Obj-C would automatically initialize ints,
et cetera, to zero. Is this correct? Can I just initialize the three I
need to be one and leave the rest out?
Thanks,
-- Rob
Moore's law heals all wounds.