Re: Cothreads [Philosophy]

2003-05-29 Thread Dulcimer
You may evaluate for yourself whether thse comments are actually worth two cents, but: I want to be able to tell whether my program is threading or using some other useful-but-not-what-I'd-do-in-a-hurry tool. I don't want to learn a thousand different details that are only there to make sure I k

Re: Threads and Progress Monitors

2003-05-30 Thread Dulcimer
> sub slow_fn { >my $tick = Timer.new(60, { print "..." }); >return slow_fn_imp @_; > } > > Now if I could just get the compiler to not complain about that > unused variable... Maybe I'm being dense Why not just sub slow_fn { Timer.new(1, { print "." }); return slow_fn_imp @_;

Re: Threads and Progress Monitors

2003-05-31 Thread Dulcimer
--- Dave Whipp <[EMAIL PROTECTED]> wrote: > Dulcimer wrote: > >>sub slow_fn { > >> my $tick = Timer.new(60, { print "..." }); > >> return slow_fn_imp @_; > >>} > >> > >>Now if I could just get the compiler to not compl

Re: Timers (was Threads and Progress Monitors)

2003-05-31 Thread Dulcimer
> > sub slow_fn { > > my $pause = 1; > > my $timer is last { .stop } = new Timer secs => $pause++, > >reset => {$pause++}, > > code => {print "."}; > > return slow_fn_imp @_; > > } > > I'm think

Re: Timers (was Threads and Progress Monitors)

2003-05-31 Thread Dulcimer
--- Dave Whipp <[EMAIL PROTECTED]> wrote: > "Dulcimer" <[EMAIL PROTECTED]> wrote > > > But exposing the object like that still bothers be: I shouldn't > > > need the $tmp, nor the .new. > > > > I'm not so sure I agree with losing