Welcome to
Mod The Sims
Online: 3185
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 2 (Who?), Viewed: 911 times.
Search this Thread
Old 28th Dec 2008, 02:30 PM DefaultNew Attributes - Initial Value #1
MogHughson
Original Poster

Miss BHAVing



Join Date: Feb 2006
Posts: 847
Thanks: 50241 in 153 Posts
22 Achievements

View My Journal


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
Old 28th Dec 2008, 04:44 PM #2
Inge Jones
Mad Poster

Join Date: Sep 2004
Posts: 6,880
Thanks: 7431 in 17 Posts
18 Achievements


They do seem to usually. But I never trust it, I always initialise.

simlogical
Please do not PM me with questions about modding. Please post in an appropriate forum and send me a link to the thread if you would like me to try and help.
Old 29th Dec 2008, 01:04 PM #3
J. M. Pescado
Fat Obstreperous Jerk

Join Date: Oct 2004
Posts: 3,153
Thanks: 8595 in 39 Posts
14 Achievements


Quote:
Originally Posted by MogHughson
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.

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.