Re: Re: multitasker.fs question
Alex Holden <[email protected]> Mon, 06 Dec 2004 12:13:02 +0000
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Message-ID | <[email protected]> |
David McNab wrote: > With my clocktest prog, I added another task which does just as you > mention - calls yield if key? returns false: Yes, you can do that at the top level. In fact I already do. Where I got mixed up is that you can't do that in subwords. So the toplevel user interface task calls a word which prompts the user for a string, and that word calls 'accept' which in turn calls 'key'. I would like to put something like 'key? if ... else yield then' in the accept word so that the other task can execute while the user interface task is waiting for the user to type a string, but that's not possible because 'accept' isn't a top level word. Sorry for the confusion. -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer