What's the diff? I've seen both used, and this is what makes sense to me: - KTHX is used as a block terminator (except for loops). I think so far, it works for functions, if's and switches. - KTHXBYE is a break. So, it will break out of a loop, or, as the last statement, end a program.
Does that work? — Risser, 2007/05/29 17:06
— KTHXBYE terminates the program KTHX terminates the current block (loop, function, if-else, switch, whatever). — Marius, 2007/05/29 17:14
It appears there is a coding error on http://lolcode.com/examples/count-1 in that KTHXBYE is used to close the IZ statement. That iz:
IZ VAR BIGGER THAN 10? KTHXBYE
would correctly read
IZ VAR BIGGER THAN 10? KTHX
or so I believe.
The Caturday code fragment I believe also has this problem, although it would technically end the run.
— notcat, 2007/05/30 23:26