Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on July 15, 2018, 06:34:24 PM

Title: Repeat, continue, break
Post by: gumby 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.
Title: Re: Repeat, continue, break
Post by: Kawa 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.