Let's put it to the test. We'll give them both the same program and see how they get on.RalfR wrote:It would be interesting to see, if QLib with the runtimes do a similar thing than SBASIC.
Code: Select all
160 CLS
170 first
180 second "hello"
190 PAUSE 100
200 STOP
210 :
220 DEFine PROCedure first
230 LOCal x
240 FOR x = 1 TO 10 : PRINT ! x !
250 PRINT
260 END DEFine
270 :
280 DEFine PROCedure second(x)
290 PRINT x
300 first
310 END DEFine
It prints out a row of ten numbers, says "hello", then prints another set of ten numbers.
Now Compiling with QLiberater and running ..
It prints out a row of ten numbers, says "hello", then unexpectedly stops with a FOR type error.
As a matter of interest, if we compile this with Turbo ..
It prints out a row of ten numbers, fails to say "hello", then stops with an error in expression.
It would seem that SMSQ/E wins the day.
EmmBee