[PicForth] Re: multitasker.fs question

Alex Holden alex at linuxhacker.org
Mon Dec 6 13:13:02 CET 2004


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


More information about the PicForth mailing list