On Sep 18, 2006, at 11:11 AM, Phil M wrote:

Just to verify... if I add a item with a value of -1 at the *end* of the list, the other values will not change?

That's correct. Each undeclared enum item takes its value only from the preceding item.

Also, is REALbasic smart enough to only link one value per constant? (i.e. not starting over again at 0 after an item with a value of -1)

It's just as smart as it needs to be; the language rules do not call for any such behavior. It is legal to define multiple enum items with the same value.

Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to