3 ms·
Looks like you can only jump down!
by purpleidea 10y ago
Looks like you can only jump down!
- acbabis 10y agoThat's OK. It's often regarded as bad practice to use variables and functions before they're declared in scope, and clearly that's what the author was after :)
- kazinator 10y agoHow so? The jump function has access to the entire script source code via parameter $0. It finds whatever label is referenced, and trims the script from there, executing it. This looks like it will jump backwards and forwards. Unfortunately, it chews up stack and memory with each jump, so a loop with many iterations is a bad idea.