-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Literal function name call fails #61
Comments
strange behavior if I have added a working call in front of the non working. /* REXX */
PARSE VERSION LANG VER
SAY "### "LANG" "VER" ###"
SAY " "
SAY SUBSTR('NOK',2,2)
SAY 'SUBSTR'('NOK',2,2)
I would guess the compiler. |
t test exec
/* */
say 'SUBSTR'('NOK',2)
Ready; T=0.01/0.01 13:02:06
test
2 *-* say 'SUBSTR'('NOK',2)
Error 43 running test, line 2: Routine not found
Ready(20043); T=0.01/0.01 13:02:11
…On Fri, Mar 19, 2021 at 8:59 AM Mike Großmann ***@***.***> wrote:
Did some more testing
Ready;
tst61
### REXX370 3.40 17 Jan 1984 ###
OK
8 +++ SAY 'SSUBSTR'('NOK',2,2)
Error 43 running TST61 EXEC, line 8: Routine not found
Ready(20043);
Ready;
tst61
### REXX370 4.02 01 Dec 1998 ###
OK
OK
Ready;
READY
tst61
### REXX370 3.48 01 May 1992 ###
OK
OK
READY
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARUFCBL42ANKGJXRYL3FJPTTENDCZANCNFSM4VRD4HCA>
.
|
bobtest
OK
Ready;
q cmslevel
VM/SP Release 5, Service Level 521
Ready;
t bobtest exec
/* REXX */
/*-------------------------------------------------------------------- */
say 'SUBSTR'('NOK',2,2)
Ready;
…On Fri, Mar 19, 2021 at 9:08 AM Mike Großmann ***@***.***> wrote:
What I wanted to show with my tests is that it also leads to an error
under VM/SP.
Only in later REXX/370 versions the behavior was changed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARUFCBOJBKWEDAUQKJYGAALTENEDRANCNFSM4VRD4HCA>
.
|
Sorry Bob, you are right, I had a typo in my first test. :( /MIkeG /* REXX */
PARSE VERSION LANG VER
SAY "### "LANG" "VER" ###"
SAY " "
SAY SUBSTR('NOK',2,2)
SAY 'SUBSTR'('NOK',2,2)
|
I can reproduce this with Bob Bolch's 2021-01-02 test case (above) on original bREXX at the current source level (2.1.9+). I'll work on a fix and then port it here. |
This is not going to be as easy to fix as I had hoped. The code in |
Note: The |
When the function name in a function call is a literal, the call fails.
ftest
2 - say 'SUBSTR'('NOK',2,2)
Error 43 running ftest, line 2: Routine not found
Ready(20043); T=0.01/0.02 10:05:04
t ftest exec
/* */
say 'SUBSTR'('NOK',2,2)
Ready; T=0.01/0.01 10:05:12
On real REXX:
ftest
OK
Ready; T=0.01/0.01 10:05:41
The text was updated successfully, but these errors were encountered: