Author Topic: Repeat, continue, break  (Read 2936 times)

0 Members and 1 Guest are viewing this topic.

Offline gumby

Repeat, continue, break
« on: July 15, 2018, 06:34:24 PM »
Just found that this combination of commands work perfect for a goto replacement.  Continue and break I'm familiar with in multiple languages, but repeat was a new one to me.  More elegant than a (while (== 1 1) loop.


In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Kawa

Re: Repeat, continue, break
« Reply #1 on: July 15, 2018, 07:28:13 PM »
Ain't it just?

I'm suddenly reminded of how the decompiler doesn't seem to like repeat blocks and can't hack the function that asks for a new save path. I wonder if that's what prevents the death handler from decompiling too? The classic one, not SQ5's.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.029 seconds with 24 queries.