in ooRexx it assigns a name to the stem and removes all elements. You can see 
from the test that the stem has no elements after that. That behavior matches 
the documentation.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Paul Gilmartin <[email protected]>
Sent: Tuesday, July 2, 2024 1:54 PM
To: [email protected]
Subject: Re: Rexx is quite cool, flexible, powerful, feature-rich, thank you! 
(Re: z/OS 3.1 Enhancements & Support News

On Tue, 2 Jul 2024 17:14:45 +0000, Seymour J Metz  wrote:

>> Conscientious documentation of Rexx avoid the word
>> "default" in this context for two reasons:
>> `1. The expression is assigned to the stem with every
>>    possible tail, not to only those not previously given
>>    a value.
>
>Not so; ooRexx is not SAA rex. The ooRexx documentation uses the word default 
>because it *is* appropriate in the context of ooRexx.
>
In what sense is it appropriate to SSA Rexx but nor roooRexx?

>> 2. If an individual member of the compound is DRO ped,
>>    its value returns to the standard UPPER(stem.tail), not
>>   the value assigned earlier to the stem.
>
>That's because DROP does not set a compound variable to the default value of 
>the stem.
>
>The test below is from OREXX rather than ooRexx, but the results should be the 
>same.
>
>  Go on - try a few...             Enter 'exit' to end.
>foo.=bar
>
In SAA Rexx that assigns BAR to compound variables with
stem FOO. and every possible tail; no default is affected.
How is it different in ooRexx?

>  ................................................ REXXTRY.CMD on OS/2
>drop foo.baz
>  ................................................ REXXTRY.CMD on OS/2
>say foo.baz
>FOO.BAZ
>
That is the default value in SAA Rexx.

>  ................................................ REXXTRY.CMD on OS/2
>say foo.foo
>BAR
>
That is not a default value.  It was explicitly assigned
by "foo.=bar".  Is it different in ooRexx?

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to