[chuck-users] good until loop
Tom Lieber
tom at alltom.com
Fri Sep 24 13:57:56 EDT 2010
On Fri, Sep 24, 2010 at 8:37 AM, Andrew C. Smith
<andrewchristophersmith at gmail.com> wrote:
> Yeah, I guess one thing we didn't really mention is that the argument
> has to be a true/false value. until(5::second) won't work because
> 5::second will not evaluate to true nor false. I think that's the main
> misconception.
Is that true? This works how I'd think it should:
until(5::second) {
<<< "won't happen" >>>;
}
do {
<<< "hi" >>>;
second => now;
} until(5::second);
while(5::second) {
<<< "bye" >>>;
second => now;
}
--
Tom Lieber
http://AllTom.com/
http://favmusic.net/
More information about the chuck-users
mailing list