On Tue, Jan 1, 2013 at 8:26 PM, Leslie Turriff <jlturr...@centurytel.net>wrote:

> On Tuesday 01 January 2013 20:02:15 Rick McGuire wrote:
> > On Tue, Jan 1, 2013 at 8:30 PM, Leslie Turriff
> <jlturr...@centurytel.net>wrote:
> > >         "List        A sequenced collection that lets you add new items
> > > at any position
> > > in the sequence. A list generates and returns an index value for each
> > > item placed in the list. The returned index remains valid until the
> item
> > > is removed from the list."
> > >
> > > Hmmm...so is a list index allowed to be an integer?  A real number?
> > > Non-numeric?
> > >         Help!
> > >
> > >
> > >From the documentation of the list class:
> >
> > The List creates a new index value whenever an item is added to the list
> > and the associated index value remains valid for that item regardless of
> > other additions or removals. *Only
> > indexes the list object generates are valid* i.e. the list is never a
> sparse
> > list and the list object will not
> > modify indexes for items in the list.
> > Draft
> >
> > Whenever an item is inserted into the list, an index is assigned to that
> > value.  This index will remain valid for that item regardless of any
> other
> > insertions or deletions that may occur with the list.
> >
> > Rick
> >
>         Okay, let's try this again.
>
>         Is a list index allowed to be an integer?  A real number?
> Non-numeric?
>

I think Rick's point was that it doesn't matter.  You can't generate a
valid index, only the interpreter can.  Whatever value it returns
is guaranteed to be valid for the life of the list, and, by
implication, guaranteed to be a valid index.

Other than that, it is an allowed index if the interpreter returns it.  An
index is allowed if the interpreter returns it.

Although I believe the indexes assigned are currently whole numbers, they
are not guaranteed to always be whole numbers.

--
Mark Miesfeld
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to