Anybody use decimals for line numbers?
#1
Code: (Select All)
GOTO 98.6
END
98.6 PRINT "Hello World!"
SLEEP

Pete
Reply
#2
it never occurred to me, just tested it in QB for DOS and it works there also
Reply
#3
Yep, leave it to me to stumble on yet another 1/2 ASCII way to code something!

Pete Big Grin
Reply
#4
I'm a bit bemused: why shouldn't it work? we can use words as labels, why not decimal numbers?
Reply
#5
Too bad we can't use variables, that would get interesting! GOTO 1/3
b = b + ...
Reply
#6
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.
Reply
#7
I'd do that with ole GW Basic, map out programs with line numbers.
b = b + ...
Reply




Users browsing this thread: 1 Guest(s)