Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ...
by csomar on Friday September 30, 2011 @11:09AM
(#3057262)
Why isn't the print function working in Qbasic? What restrictions are there in the compiler?
[ Parent
| on HN ]
Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ...
by max99x on Friday September 30, 2011 @11:12AM
(#3057279)
You might be hitting the fact that QBasic actually requires keywords to be in capitals. The original IDE did the conversion for you, but repl.it doesn't. We should really be more lenient about those. For now, check the existing examples and use your trusty caps lock.
Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ...
by drv on Friday September 30, 2011 @11:24AM
(#3057316)
The actual QuickBASIC compiler allowed any case for keywords.
The lack of line numbers was a bit confusing too - my first inclination when seeing a BASIC prompt is to type
10 PRINT "hello"
20 GOTO 10
Aside from that, it seems to work as expected (at least in the quick tests I tried).