Group: comp.lang.tcl


Subject: sleep in tcl
From: Alan Anderson
Date: 11/27/2007 10:51:32 PM
yusuke <tm9233yy@gmail.com> wrote: > Thank you for your reply. > The next sample might be the ad-hoc solution in some case, but it's > not general. > # sample5 > first_proc > after 2000 second_proc > after 4000 third_proc If you explained what you're trying to do with this, you might get better and more specific answers. For another possibility, consider: proc first_proc {} { ... after 2000 second_proc } proc second_proc {} { ... after 2000 third_proc } proc third_proc {} { ... } first_proc # enter event loop vwait forever

Subject: sleep in tcl
From: Alan Anderson
Date: 11/27/2007 10:51:32 PM
yusuke <tm9233yy@gmail.com> wrote: > Thank you for your reply. > The next sample might be the ad-hoc solution in some case, but it's > not general. > # sample5 > first_proc > after 2000 second_proc > after 4000 third_proc If you explained what you're trying to do with this, you might get better and more specific answers. For another possibility, consider: proc first_proc {} { ... after 2000 second_proc } proc second_proc {} { ... after 2000 third_proc } proc third_proc {} { ... } first_proc # enter event loop vwait forever