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
