Rank: Newbie Groups: Member
Joined: 9/23/2010 Posts: 1 Points: 3
|
i want to know why the identity is initialed to -1 in the default constructor and set the property 'unsaved-value' to -1? why not 0? Don't tell me it is personal preference?
|
Rank: Administration Groups: Administration
, Member
Joined: 12/30/2004 Posts: 1,674 Points: 1,824 Location: Wageningen (NL)
|
Well, this is from the time that you had to explicitly set the 'unsaved-value'. At that time I thought it was more clear to use -1 as unsaved-indicator. Nowadays it's just extra work, I agree.
|