lua-users home
lua-l archive

Re: Multiple lua instances

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


On 2010年1月19日 17:07:18 +0100
ingmar wirths <ingmania@googlemail.com> wrote:
> > Is there a specific reason you're wanting to use different states
> > rather than the more usual sand-boxing approaches by using
> > environment tables? 
> 
> Well, as i sad, i want to restrict communication between units and
> provide an communication api to enforce this. A glimpse on
> environment tables looked promising at first, but on a second
> thought, since i want to permit the user to modify the ai, he could
> probably easy bypass these restrictions.
It's easy to provide an API to your sandboxed functions that your
trusted Lua can process. And it can be made quite difficult to break
out of these sandboxes. (Especially with liberal use of the debugging
library.)
B.

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