[comp.lang.rexx] index

kleist@nemesis.bula.se (Svante Kleist) (12/17/90)

The built-in functions index(string, pattern [,start] )

and                      pos(pattern, string [,start] )

in my ARexx (Amiga Rexx, by William S. Hawes) manual seem

to work completely the same. Index() is not mentioned among the

extentions to the language standard. In his book "The Rexx Language",

(second ed., 1990) Cowlishaw does not mention index() at all...



Could somebody give the rest of the story??

   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
   .                                                                   .
   .                    S V A N T E    K L E I S T                     .
   .                                                                   .
   .  Student of Computer Systems Sciences, Univ. of Stockholm, Sweden .
   .                                                                   .
   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

eric@sejnet.sunet.se (Eric Thomas, SUNET) (12/18/90)

These functions do exactly the same thing, but the syntax is different. The
reason for the inclusion of INDEX() is that it is what PL/I programmers are
used to, and IBM wanted to make life easier for them.

  Eric