RE: Scripting API Wishlist
Having a sleep() function seems like a very bad idea because it will be misused quite a lot. In fact, I can't see any good use for it. You should always use a timer instead.
A sleep function is sycroneous, and as long as each script doesn't have its own thread, it should realy not be used at all. Even when scripts are running in their own thread, Plus! would then not be able anymore to call other events at the appropiate time and custom interface windows will stop working; go blank, etc.
A function like sleep is only 'good' (mind the quotes; as it is actually never good) in a one-process-one-thread-no-gui environment.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|