View previous topic :: View next topic
|
Author |
Message |
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
a = 5
call sum
say result
exit
sum:
b= 5
a = a + b
return
What would be the output of this?
"The subroutine should process a RETURN instruction, and at that point control returns to the clause following the original CALL. If the RETURN instruction specified an expression, the variable RESULT is set to the value of that expression. Otherwise, the variable RESULT is dropped (becomes uninitialized)" |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Holy sith, why the fluffing hell do you bother us with this when it would take you all of 15 seconds to fluffing try it yourself?
RTFM! |
|
Back to top |
|
|
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
Hey dude..
Chill man.. you need not be that verbose. i am trying to learn REXX. Very much new to it. i do not have access to REXX on my Box.. just reading the manuals and some code snippets. well if its bothering you a lot, just ignore.. i know its a silly question for rexx gods out there. Its better to ask than to be ignorant. I went through the manuals(posted an extract).
And I DID READ THE F MANUALS |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What do you think that the result would be and why, and if you are wrong we will endevour to explain. |
|
Back to top |
|
|
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
I think its either "RESULT" or 0... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
What do you think that the result would be and why, |
And why? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why don' t You install a Rexx interpreter on Your PC ??
Regina-REXX would be the simpler choice, and You could run al kinds of experiments |
|
Back to top |
|
|
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
Thanks a lot enrico
Regina-Rexx is a nice utility. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Regina-Rexx is a nice utility. |
please review Your IT dictionary/vocabulary...
Regina_REXX is not an utility
REXX is a programming language and is processed by an interpreter,
Regina_REXX is one of them |
|
Back to top |
|
|
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
oops..
Thanks again for the correction |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
REXX is my preferred programming language
and is also one of the smartest around,
when I hear or read something wrong about it
I just cannot resist flaming |
|
Back to top |
|
|
|