Article View: comp.sys.amiga.tech
Article #8417Re: A small ARexx example, and other useful tidbits . . .
From: Peter da Silva
Date: Thu, 07 Apr 1988 02:50
Date: Thu, 07 Apr 1988 02:50
35 lines
1824 bytes
1824 bytes
In article ... kim@amdahl.uts.amdahl.com (Kim DeVaughn) writes:
> I hadn't really thought about posting it, until Peter da Silva catagorized
> the REXX language as being "PL/I like". Bunk.
It's PL/1-like. I've extensive experience with another PL/1 derivitive
(namely PL/M), and moderate experience with PL/1 itself (despite my best
attempts at avoiding it :->).
There's nothing inherently wrong with being PL/1-like, so don't be so
defensive. I just happen to prefer weird C derivitives.
> say "Cuckoo at" zhour||":"||xmin
^ Don't you want a concatenation operator here?
> select
> when xhour=0 then do; xhour="twelve"; if xmin=0 then mnite="midnite"; end
> when xhour=11 then xhour = "elaven"
> when xhour=12 then do; xhour="twelve"; if xmin=0 then mnite="noon"; end
> otherwise nop
> end
An improvement over "DO CASE", I must say.
> else do
> tmin=xmin%10
> if tmin=1 then do;
^ Isn't this redundant?
> if opt="ALARM" then address COMMAND speak dingaling
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mind explaining this
construct?
--
-- a clone of Peter (have you hugged your wolf today) da Silva `-_-'
-- normally ...!hoptoad!academ!uhnix1!sugar!peter U
-- Disclaimer: These aren't mere opinions... these are *values*.
Technical Details
Message-ID:
<896@nuchat.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!nuchat!peterReferences:
<26223@amdahl.uts.amdahl.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!nuchat!peter From: peter@nuchat.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: A small ARexx example, and other useful tidbits . . . Message-ID: <896@nuchat.UUCP> Date: 7 Apr 88 02:50:02 GMT References: <26223@amdahl.uts.amdahl.com> Organization: Public Access - Houston, Tx Lines: 35 Keywords: Warning: also contains a small assembly language example!