The triggers get applied first, then things get broken in words using the variable list. The +2 trigger matches to the second position, "c ", which is then broken into words and assigned to the variables.
Rick On Wed, Jun 8, 2022 at 10:51 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at> wrote: > Consider the following: > > parse value "c fgh" with v1 v2 > ........................................... rexxtry.rex on WindowsNT > say "v1=["v1"] v2=["v2"]" > v1=[c] v2=[fgh] > ........................................... rexxtry.rex on WindowsNT > > parse value "c fgh" with v1 v2 +2 > ........................................... rexxtry.rex on WindowsNT > say "v1=["v1"] v2=["v2"]" > v1=[c] v2=[] > ........................................... rexxtry.rex on WindowsNT > > Why would v2 in the second parse refer to an empty string (would have > expected the string "fg")? > > ---rony > > > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel >
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel