Hello. I'm new around here.
Whilst I worked as a programmer (mainly in REXX) in IBM for 37 years, I'm now retired, but I hope that I'll qualify. I'll probably ask a few questions, and try to help most of the time.
I came here to ask a question, so here it is:
In the following snippet of code, using Open Object REXX, can the routine "Silent" determine if it has been called as a Subroutine or as a Function?
...
Call Silent
Say Silent(1)
...
Silent: Procedure
-- Was I called as a Subroutine or as a Function
...
Return 'Maybe'
Steve Swift
Whilst I worked as a programmer (mainly in REXX) in IBM for 37 years, I'm now retired, but I hope that I'll qualify. I'll probably ask a few questions, and try to help most of the time.
I came here to ask a question, so here it is:
In the following snippet of code, using Open Object REXX, can the routine "Silent" determine if it has been called as a Subroutine or as a Function?
...
Call Silent
Say Silent(1)
...
Silent: Procedure
-- Was I called as a Subroutine or as a Function
...
Return 'Maybe'
Steve Swift