[cap-talk] Lua, Javascript, and the Object Capability Model
Tony Finch
dot at dotat.at
Mon Jul 27 09:12:49 EDT 2009
On Mon, 27 Jul 2009, Matej Kosik wrote:
>
> Suppose that you have two separate confined subsystems and one has
> access to a function defined in another one. The following two questions
> might be silling but I would like to ask anyway:
>
> (1) Can the first subsystem pass a reference to its private object to
> another subsystem as a parameter to a function call?
>
> (2) Can the second subsystem return a reference to its private object to
> the first subsystem as a return value?
Yes, in both cases, if the private object is implementedas a table.
You can also implement objects in Lua as closures, in which case the
answers are no, in both cases.
Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.
More information about the cap-talk
mailing list