Damn shouldn't have swapped them variables around should I ??!!

In a message dated 08/07/2003 12:25:13 GMT Standard Time, [EMAIL PROTECTED] writes:

O(...)>
>SMSQ/e has an outstanding bug in this instance as well - take for example:
>
>10 DIM x(10)
>20 c=1:TEST c,x
>100 DEFine PROCedure TEST(a,b)
>110 DIM b(100)
>120 END DEFine
>
>Running this program gives the error as described.

True.
>However, try entering as a direct command:
>CLEAR: TEST c,d
>no error reported !!
>
I DO get an error
namely "only arrays may be dimensioned"
which, of course is what I would expect (since d wasn't initialised
anywhere, it is set to be a float, value 0 and that canb't be
dimensioned!)


Yes, OK, but try CLEAR: TEST c,x


>PRINT c,1000 or PRINT c,d
>
>:-(

No problem, gives 0  0 which, again, is what is expected.


Hmm - I got an error in _expression_ - aha - PRINT c,x


>Or try using the variable d afterwards, eg d=100 or x=d

Again, no problem


Again, try x=100 or d=x

CLEAR obviously does not destroy the fact that x was originally defined as an array !!
--
Rich Mellor
RWAP Services
35 Chantry Croft, Kinsley, Pontefract, West Yorkshire, WF9 5JH
TEL: 01977 610509
http://hometown.aol.co.uk/rwapsoftware

Reply via email to