0317: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
Line 5: | Line 5: | ||
This error was added in BR! version [[4.2]]. | This error was added in BR! version [[4.2]]. | ||
The following program demonstrates the error. | The following program demonstrates the error. Remember that X & Y are the same array in this example, and you cannot assign the results of FN_Y to the same array. | ||
00010 dim x(10) | 00010 dim x(10) | ||
Line 18: | Line 18: | ||
|Type [[GO]] and hit enter to continue. | |Type [[GO]] and hit enter to continue. | ||
You can solve the above example like this: | You can solve the above example like this: (X(1)=1) | ||
00010 dim x(10), | 00010 dim x(10), | ||
Line 29: | Line 29: | ||
00080 let fn_y<nowiki>=</nowiki>y(1) | 00080 let fn_y<nowiki>=</nowiki>y(1) | ||
00090 fnend | 00090 fnend | ||
Another alternative: (X(1)=123) | |||
00010 dim x(10), | |||
00020 let fn_y(mat x) | |||
00030 end | |||
00040 def fn_y(mat y) | |||
00060 mat y(1) | |||
00070 let y(1)<nowiki>=</nowiki>123 | |||
00080 let fn_y<nowiki>=</nowiki>y(1) | |||
00090 fnend | |||
}} | }} | ||
[[Category:Error Codes]] | [[Category:Error Codes]] |
Revision as of 15:14, 3 March 2025
Summary: |
attempt to redimension an array that is already on the RPN stack |
---|---|
Cause: |
attempt to redimension an array that is already on the RPN stack This error was added in BR! version 4.2. The following program demonstrates the error. Remember that X & Y are the same array in this example, and you cannot assign the results of FN_Y to the same array. 00010 dim x(10) 00020 let x(1)=fn_y(mat x) 00030 end 00040 def fn_y(mat y) 00060 mat y(1) 00070 let y(1)=123 00080 let fn_y=y(1) 00090 fnend
|
Remedy: |
. |