#101476 - 2003-05-24 12:43 AM
BUG: KiXtart 4.21
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
does anyone concur with me that the following test script produces abnormal behavior?
code:
$a = "1~2" $i=$a gosub A $a=$i for each $x in $a ? "'$x'" next
;Only 'return' works. Try using 'exit' and 'quit' ;exit ;quit return
:A $i=split($i,"~") return
When using either "exit" or "quit", the following error occurs. quote: ERROR : Error in expression: this type of array not supported in expressions.!
[ 24. May 2003, 00:43: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#101478 - 2003-05-24 02:57 AM
Re: BUG: KiXtart 4.21
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
I agree. (You pick who I agree with.)
|
|
Top
|
|
|
|
#101479 - 2003-05-24 02:57 AM
Re: BUG: KiXtart 4.21
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
|
|
Top
|
|
|
|
#101480 - 2003-05-24 03:06 AM
Re: BUG: KiXtart 4.21
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Yeah, yeah, but the documentation states that the exit code is OPTIONAL. OPTIONAL means that it is not required for the program to function.
Therefore, draw your own conclusion.
|
|
Top
|
|
|
|
#101483 - 2003-05-24 03:02 PM
Re: BUG: KiXtart 4.21
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Agreed. I think that if the numeric does not come before the CR then no eval is done. [ 24. May 2003, 15:02: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#101485 - 2003-05-24 03:26 PM
Re: BUG: KiXtart 4.21
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
That may be the best solution yet.
|
|
Top
|
|
|
|
#101493 - 2003-05-25 04:09 PM
Re: BUG: KiXtart 4.21
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I think it is as simple as ALL input to any function or command should be qualified by being wrapped in ()'s. No ()'s no input to be evaluated.
{edit} See Les' post above. ![[Wink]](images/icons/wink.gif) [ 25. May 2003, 20:58: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 657 anonymous users online.
|
|
|