[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: message loop for --gui-exe compiled code?



Quoting Jong-Kyou Kim:
> I wrote and compiled the following code using `mzc --gui-exe'. The
> program, however, didn't wait any input. It terminated immediately.

Was this is 102 or 103?

In 102, you'd have to use something like
 (yield (make-sepahore))
at the end of your program, and then explicitly exit in response to
some event.

In 103, however, we changed MrEd to behave the way you'd expect. More
specifically, we extended `yield' to accept a 'wait flag, and changed
MrEd to implicitly add
  (yield 'wait)
at the end of programs.

Matthew