Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Is REXX awful ? Or lack of knowledge ?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2656
Location: italy

PostPosted: Fri Mar 21, 2008 7:32 pm    Post subject: Reply to: Is REXX awful ? Or lack of knowledge ?
Reply with quote

Quote:
I would like that REXX has real data types, structures, memory pointers... Am I asking too much


yes
Back to top
View user's profile Send private message
References
PostPosted: Fri Mar 21, 2008 7:32 pm    Post subject: Re: Reply to: Is REXX awful ? Or lack of knowledge ? Reply with quote

helga

New User


Joined: 11 Sep 2006
Posts: 24

PostPosted: Sat Oct 11, 2008 3:32 am    Post subject: Reply to: Is REXX awful ? Or lack of knowledge ?
Reply with quote

Interesting

Code:
say "stem.var" stem.var


So if a 'variable' has never had a value, then it's not really a variable. It's a litteral.

===

Code:
say "stem.var" stem.var
var = "AAA"
say "stem.var" stem.var


So a compound variable still isn't a variable until it gets a value, though if a part of it gets a value, that bit is a variable

===

Code:
say "stem.var" stem.var
var = "AAA"
stem.var = "bbb"
say "stem.var" stem.var
say "stem.AAA" stem.AAA


And now because the compound variable is given a value, it becomes a variable, but not only that, the part of it that got a value (var) is also a variable, so the compound variable can be refered to using either the variable var or the value of the variable var (AAA).

I wonder if they are the same thing . . .

===

Code:
say "stem.var" stem.var
var = "AAA"
stem.var = "bbb"
say "stem.var" stem.var
say "stem.AAA" stem.AAA
stem.AAA = "ccc"
say "stem.var" stem.var
say "stem.AAA" stem.AAA


stem.var and stem.AAA appear to be the same thing.





...well it's a little confusing icon_confused.gif


but then again, it's probably only like saying
Code:
WRITE "ARRAY(var)" ARRAY(var)
var = 1
ARRAY(var) = "bbb"
WRITE "ARRAY(var)" ARRAY(var)
WRITE "ARRAY(1)" ARRAY(1)
ARRAY(1) = "ccc"
WRITE "ARRAY(var)" ARRAY(var)
WRITE "ARRAY(1)" ARRAY(1)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2