On Tuesday 01 January 2013 22:57:49 Mark Miesfeld wrote: > 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: [snip] > > 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. Okay. Rereading the description, I now understand that the indices are generated by the interpreter, not by the programmer. Perhaps I'm dense, but I didn't recognize that at first. I presume then, that relative index references allowed for arrays (e.g. array[a+2]) are not allowed for lists.
Leslie ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users