On Thu, Jul 31, 2008 at 9:07 AM, Stéphane Magnenat
<[EMAIL PROTECTED]> wrote:
> On Thursday 31 July 2008 03:43:16 Bradley Arsenault wrote:
>> I am wondering what the intended method of execution for USL scripts was
>> planned to be? Like, was the script meant to be fully executed every frame?
>> Was there meant to be a designated "main" evaluation? As far as I can tell,
>> USL is a functional language, rather than imperative, which may make
>> integration more difficult.
>
> The idea was to execute all thread on every frame, and having a yield() native
> function somewhere in the script that would stop execution for the current
> frame. This, in addition to lambda abstraction, allows a very clean
> implementation of all current wait condition and much more.
>
> Pseudo code below:
>
> def wait(cond:lambda)
> {
>         while (cond())
>                 yield()
> }
>
> But surely Marvelous can help you on this.

Exactly. Bradley, are you available for chat or skype (or phone from
skype)? Give me a schedule and contact info and I'll be there.

Marv


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to