Hi Folks,
On Fri, Sep 24, 2010 at 8:37 AM, Andrew C. SmithIs that true? This works how I'd think it should:
<andrewchristophersmith@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.
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/
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users