Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Discovering stems (ooRexx 4)

2 views
Skip to first unread message

Swifty

unread,
Nov 15, 2009, 1:37:14 AM11/15/09
to
I can use SysDumpVariables to discover all variables that have been defined.

Is there a corresponding mechanism for determining stems that have been
defined?

Example: Fred. = 'Something'

If this is not possible, could it be added to SysDumpVariables (perhaps
as an option) in some future release?

To see where I would use this, go to http://www.swiftys.org.uk/rexxtry
This lists all the variables that you create, but my code cannot
determine any stems that you may have created. If you create a variable
with a tail, that is displayed, but not the stem itself (its "default"
value, when it has been set)

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

rony

unread,
Nov 15, 2009, 10:38:22 AM11/15/09
to
Just enter the following into your site:

a.=1233; v= .context~variables;say v;do idx over v;say idx"="v[idx] "/" v[idx]~class;end;

HTH,

---rony

rony

unread,
Nov 15, 2009, 10:46:53 AM11/15/09
to
Hi Swifty,

riding a train through the mountains, hence intermittent access to the Internet, here a more helpful
example for you (all one line to be entered into your website):

a.=1233; a.1="one";a.2=2;v= .context~variables;say v;do idx over v;o=v[idx];say idx"="o "/"
o~class; if o~isA(.stem) then ;do;say o 'is a STEM !!'; do sidx over o;say "==>"sidx
"-->"o[sidx];end;end;end;

BTW, very cool to have a rexxtry on the net!

Regards,

---rony

LesK

unread,
Nov 16, 2009, 4:39:13 PM11/16/09
to
I get Not Found when I click on your link. Under development?

Les (Change Arabic to Roman to email me)

Swifty

unread,
Nov 17, 2009, 8:07:40 AM11/17/09
to
LesK wrote:
> I get Not Found when I click on your link. Under development?

No, destroyed. Someone asked me what would happen if someone tried the
(perfectly valid) REXX statement:

'rm -rf ~/*'

I haven't slept since then, not ever after deleting the thing.

I'm toying with the REXX Security Manager to see if I can resurrect my
page, but it's not high on my list of priorities.

Swifty

unread,
Nov 18, 2009, 4:04:54 AM11/18/09
to
Shmuel (Seymour J.) Metz wrote:
> Ouch! I joke about advising the use of the Read Manual Real Fast command,
> but I never thought that anybody would actually do so.
>
> I hope that now you are taking regular backups.

Oh, I take very regular backups, but now they are more of a worry than a
comfort� one slip and that dreadful rexxtry.cgi may come back!

0 new messages