08-04-2022, 11:33 PM
Code: (Select All)
GOTO 98.6
END
98.6 PRINT "Hello World!"
SLEEP
Pete
Anybody use decimals for line numbers?
|
08-04-2022, 11:33 PM
Code: (Select All) GOTO 98.6 Pete
08-04-2022, 11:40 PM
it never occurred to me, just tested it in QB for DOS and it works there also
08-04-2022, 11:50 PM
Yep, leave it to me to stumble on yet another 1/2 ASCII way to code something!
Pete
08-05-2022, 02:11 AM
I'm a bit bemused: why shouldn't it work? we can use words as labels, why not decimal numbers?
08-05-2022, 03:07 AM
Too bad we can't use variables, that would get interesting! GOTO 1/3
b = b + ...
08-05-2022, 03:23 AM
I remember a couple old games which used this as an organization method. Was it Zork? Wizardry? The way it worked was by setting code sections into various number ranges.
Example: Line 100.000 - 199.999 was character creation. Line 200.000 - 299.999 was character level up + skill acquire And so on.
08-05-2022, 03:28 AM
I'd do that with ole GW Basic, map out programs with line numbers.
b = b + ...
|
« Next Oldest | Next Newest »
|