Thanks Rick for confirming the behaviour. It's no big deal since the function works properly. It's just that I, as a Rexx user since the early 80's, am trying to use the tilde too for the old function calls.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you're going to have to include a fully functional program that demonstrates the problem. Test~abs is working just fine for me. Also include the ooRexx version and platform you are running this on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, is rexxtry perhaps sufficient proof? Run on Windows XP SP2.
C:\Documents and Settings\Ruurd\Bureaublad\Oorexx>rexxtry
REXX-ooRexx_3.1(MT) 6.01 20 Apr 2007
rexxtry.rex lets you interactively try REXX statements.
Each string is executed when you hit Enter.
Enter 'call tell' for a description of the features.
Go on - try a few... Enter 'exit' to end.
test = -43.5009
........................................... rexxtry.rex on WindowsNT
Say Abs(test)
43.5009
........................................... rexxtry.rex on WindowsNT
Say test~abs
C:\Documents and Settings\Ruurd\Bureaublad\Oorexx>
Also the following program shows the problem on my pc:
/ Testing Abs() function versus ~abs method /
test = -43.5009
postestabsfunc = Abs(test)
postestabsmeth = test~abs
Say "If 'test~abs' did not halt this program mysteriously I'll be darned"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, this is a new one on me. It only appears to occur with the retail build, which will make this interesting to debug. The problem also occurs in the current trunk release, but again only with the optimized compiles. At least with the new release, you get a trap pop up :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
test = 43.5009
Abs(test) => 43.5009
test~abs => 43.5009
test = -43.5009
Abs(test) => 43.5009
test~abs => program aborts, no message, no anything. wad?
Thanks Rick for confirming the behaviour. It's no big deal since the function works properly. It's just that I, as a Rexx user since the early 80's, am trying to use the tilde too for the old function calls.
I think you're going to have to include a fully functional program that demonstrates the problem. Test~abs is working just fine for me. Also include the ooRexx version and platform you are running this on.
Ok, is rexxtry perhaps sufficient proof? Run on Windows XP SP2.
C:\Documents and Settings\Ruurd\Bureaublad\Oorexx>rexxtry
REXX-ooRexx_3.1(MT) 6.01 20 Apr 2007
rexxtry.rex lets you interactively try REXX statements.
Each string is executed when you hit Enter.
Enter 'call tell' for a description of the features.
Go on - try a few... Enter 'exit' to end.
test = -43.5009
........................................... rexxtry.rex on WindowsNT
Say Abs(test)
43.5009
........................................... rexxtry.rex on WindowsNT
Say test~abs
C:\Documents and Settings\Ruurd\Bureaublad\Oorexx>
Also the following program shows the problem on my pc:
/ Testing Abs() function versus ~abs method /
test = -43.5009
postestabsfunc = Abs(test)
postestabsmeth = test~abs
Say "If 'test~abs' did not halt this program mysteriously I'll be darned"
Ok, this is a new one on me. It only appears to occur with the retail build, which will make this interesting to debug. The problem also occurs in the current trunk release, but again only with the optimized compiles. At least with the new release, you get a trap pop up :-)