On Tue, Jan 1, 2013 at 8:57 PM, Mark Miesfeld <miesf...@gmail.com> wrote:

>
> I think Rick's point was that it doesn't matter.
>

Although, maybe not.  With my interpretation of what Rick meant, I would
have expected this to work:

  musketeers=.list~of(Porthos,Athos,Aramis)
  index=musketeers~first
  musketeers~insert("D'Artagnan",index)

  if musketeers~hasIndex(1.5) then do
    say 'This is odd'
  end
  else do
    say '1.5 is not an index'
  end

But, it generates a syntax condition:

     7 *-* if musketeers~hasIndex(1.5)
Error 93 running C:\work.ooRexx\wc\ooDialog\qtest.rex line 7:  Incorrect
call to method
Error 93.918:  Incorrect list index "1.5"

So, I guess maybe the doc should indicate what values are valid to test for
in the hasIndex() method ...

--
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