guys help im frozen in time

i post more on my FediPub Activityverse: @mothcompute@vixen.zone it is where i talk about all my fun projects


amy
@amy

while porting over some assembly to a minimal scripting language, and dissecting its messy control flow, i discovered how to emulate forward goto in a language without it:

  • wrap the statements involved in a while (true) block. starting point doesn't matter too much but the end point should be right where you want your gotos to end up
  • make the last statement of the block a break, this prevents the block from actually looping and enabling you to (ab)use break statements anywhere in the block to interrupt flow
  • wherever you would want to use a goto, just use break

i feel reckless, yet powerful


You must log in to comment.