Dnia środa, 22 lutego 2006 12:43, John Connors napisał:
I know goto and gosub are evil, bad habits but I'm starting to miss them.
You SHOULD miss them. GOSUB is called a function call in Python (you call a
function by its name, rather than by its starting line number)
Someone misinformed
yeah GOTO , in basic (I used to write software in Commodore BASIC
myself) is similar to a for or while loop -
In BASIC, you would write a program, *including* line numbers thus:
10 a=32
20 b=hello
30 print a
40 print b
50 a=a-1
60 if a 0 goto 20
70 end
(It's probably not 100% syntactically