User talk:Geoffhacker: Difference between revisions
Content added Content deleted
(Excuse me.) |
(Undo revision 200098 by Geoffhacker (talk) Reply.) |
||
Line 1: | Line 1: | ||
==fixing a REXX bug== |
|||
Please check (execute) the program after you "fix" a bug to ensure that the output is (still) correct. There was no bug in the REXX program you "fixed". The output was correct with the original program. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:20, 3 March 2015 (UTC) |
|||
:My bad. But when I tried to run your program as-is, I received the following message: |
|||
:c:\Users\hackerg\Downloads>rexx lcsubstr.rex |
|||
: 10 *-* parse arg x,y,$ |
|||
:Error 13 running c:\Users\hackerg\Downloads\LCSubstr.rex line 10: Invalid chara |
|||
:cter in program |
|||
:Error 13.1: Incorrect character in program "$" ('24'X) |
|||
:As it is, I assume that that must mean that there is no boundary checking in REXX. When I tried to implement it as-is in C# I got an out-of-bounds error, and by subtracting j from the length of x I corrected that error and produced the correct result when I executed the program. --[[User:Geoffhacker|Geoffhacker]] ([[User talk:Geoffhacker|talk]]) 07:30, 4 March 2015 (UTC) |
Revision as of 07:30, 4 March 2015
fixing a REXX bug
Please check (execute) the program after you "fix" a bug to ensure that the output is (still) correct. There was no bug in the REXX program you "fixed". The output was correct with the original program. -- Gerard Schildberger (talk) 23:20, 3 March 2015 (UTC)
- My bad. But when I tried to run your program as-is, I received the following message:
- c:\Users\hackerg\Downloads>rexx lcsubstr.rex
- 10 *-* parse arg x,y,$
- Error 13 running c:\Users\hackerg\Downloads\LCSubstr.rex line 10: Invalid chara
- cter in program
- Error 13.1: Incorrect character in program "$" ('24'X)
- As it is, I assume that that must mean that there is no boundary checking in REXX. When I tried to implement it as-is in C# I got an out-of-bounds error, and by subtracting j from the length of x I corrected that error and produced the correct result when I executed the program. --Geoffhacker (talk) 07:30, 4 March 2015 (UTC)