> I notice you didn't discuss;
>>    A. = 'Preset'
> >    drop A.GAP

Because neither has an effect on the loop.

>     Further, when a stem is used as the target of an assignment,
>    all possible compound variables whose names begin
 >   with that stem receive the new value,

That text is for TSO/E (classic) REXX, not for ooRexx.

> Or do I fail to understand that in oo the first instruction
> replaces the compound symbol with a single string
> object; leaving no members to DROP?

No, it sets the object name and default value.

"If the new value is not a Stem object, a new Stem object is created and 
assigned to
the stem variable, replacing the Stem object currently associated with the stem 
variable.
The new value assigned to the stem variable is given to the new Stem object as 
a default value.
Following the assignment, a reference to any compound symbol with that stem 
variable
returns the new value until another value is assigned to the stem, the Stem 
object,
or the individual compound variable."

--
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 10:38 AM
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 01:51:36 +0000, Seymour J Metz wrote:

>do i over A.
>    say 'A.'i '=' A.i
>    end
>
>Shouldggive only one line: "A. = I dunno".
>
I notice you didn't discuss;
>    A. = 'Preset'
>    drop A.GAP

<https://www.ibm.com/docs/en/zos/3.1.0?topic=symbols-stems>
    Further, when a stem is used as the target of an assignment,
    all possible compound variables whose names begin
    with that stem receive the new value,

Or do I fail to understand that in oo the first instruction
replaces the compound symbol with a single string
object; leaving no members to DROP?

>________________________________________
>From:  Paul Gilmartin
>Sent: Monday, July 1, 2024 8:32 PM
>
>What does DO OVER do for the analogue of REXX:
>    A. = 'Preset'
>    drop A.GAP
>    Null = ''; A.Null = "I dunno"
>???

-- 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