1. [E - 13 to 14 Apr 1998] question converting to euphoria from
- Posted by Jeff Zeitlin <jeff.zeitlin at MAIL.EXECNET.COM>
Apr 16, 1998
-
Last edited Apr 17, 1998
In the discussion on this topic over the past few days, there's
something that we all seem to have overlooked - and which I
deliberately ignored in my original response. That is the actual
operation of the QBasic SLEEP command.
It's not unlikely that it was being used to wait for a disposable
keystroke, in which case the appropriate substitute would be a
call to wait_key. However, SLEEP also responds to other events,
provided that those events are trapped - which can mean a
joystick action (either movement or button press) or a comm
interrupt, right off the top of my head. If the optional
non-negative integer parameter is supplied and non-zero, it also
acts as a simple time delay. That requires additional code
that's somewhat more complex than a simple wait_key.
Just thought I'd point this out.
--
Jeff Zeitlin
jeff.zeitlin at mail.execnet.com