Um... never mind, I see they're quite close together in the text.

On 2018-04-27 04:55:42 Rick McGuire wrote:
> These are defined in Chapter 9.3 of the Object Rexx reference. The length
> positional patterns work the way many people expect + and - to work,
> particularly with backward movement. Consider the following two templates. 
>
> var = "This is a test"
> parse var var "is" -2 value       -- value is set to "s is a test"
>
> parse var var "is" <2 value     -- value is set to "s ", the two characters
> preceding the last match. 
>
> Many people expect -2 to work that way and are surprised to see that it
> picks up the remainder of the string. If I had a nickle for every time I've
> had to explain why it worked that way... Or every worse, had to deal with a
> bug report from someone convinced that was actually a bug. 
>
> Rick 

        Maybe a link to 9.3 in the text after example 9.16 would be helpful in 
reducing confusion.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to