Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

why not the identity is 0? Options
ThinkInLife
Posted: Thursday, September 23, 2010 3:31:15 AM
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?
martijnb
Posted: Wednesday, October 6, 2010 4:13:02 AM

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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.