[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Re[2]: why no "continue" statement for loops?
- From: "Nick Trout" <nick@...>
- Date: Tue, 24 Jun 2003 10:01:16 -0700
> All that said, I can put up with the syntax if it works but I'm not
sure
> if
> your example will work - jump_to_state changes "state" and then when
the
> resume function is called isn't the PC for the coroutine in the
function
> that state was originally referring to? If not is there some kind of
> implicit reset of the program counter to zero?
I said it was seat of the pants untested ;-). I wanted to go home for me
tea. Maybe if the dispatch is in the coroutine and you remember the next
state and change on an update...? I take your point that arbitrary
control flow is more difficult functionally.
--nick