I have been exploring one or two 'features' within Turbo which I have passed the comments onto George Gwilt.  However, perhaps someone has an original v2 of Turbo and would like to try out the following:

10 DIM x$(2,50)
20 x$(0)='Hello World'
30 x$(1)='This is a test'
40 x$(2)='Turbo only sees this line within the test function'
50 PRINT DIMN(x$):PAUSE
60 PRINT test (x$)
70 PAUSE
100 DEFine FuNction test (x$)
110 PRINT DIMN (x$)
120 FOR ix=0 to 2:PRINT x$(ix)
130 RETurn 1
140 END DEFine

Change line 50 to PRINT DIMN(x$(1)):PAUSE for a laugh

The other quirk is that Turbo will report an error if you pass a different type of variable to the parameter type listed in the reference, for example:

10 x=1
20 INC x
30 PRINT x:PAUSE
90 REFERENCE a%
100 DEFine PROCedure INC(a%)
110 a%=a%+1
120 END DEFine

Has anyone else noticed any other oddities.

--
Rich Mellor
RWAP Software
35 Chantry Croft, Kinsley, Pontefract, West Yorkshire, WF9 5JH
TEL: 01977 610509
http://hometown.aol.co.uk/rwapsoftware

Reply via email to