lua-users home
lua-l archive

Re: running LUA code step by step

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, 2002年03月15日 at 16:33, Steve Dekorte wrote:
> 
> On Friday, March 15, 2002, at 12:30 PM, Sean Middleditch wrote:
> > Yes, I'm also looking for a similar solution. I want Lua to be able to
> > rune multiple chunks/states/threads/whatever, but be interuptable (to
> > give control back to the controlling thread).
> 
> I think the yield patch can accomplish this in a cooperative way.
yield... doesn't ring a bell in Lua terms (and am about to leave). You
don't mean yield as in how Ruby handles it, do you? I don't want to
have the user pass around callbacks. that's not fun. something more
like
myvar = ask_user ( "Are you sure?" )
I'm not putting this stuff in front of programmers, I'm putting it in
front of users to do their macro scripting. I want to avoid callbacks
(on their end) as much as possible.
> 
> Steve
> 
> 

AltStyle によって変換されたページ (->オリジナル) /