What could possibly go wrong?

[?]

On Mon, Aug 24, 2009 at 10:13 PM, Marcus G. Daniels <[email protected]>wrote:

> Owen Densmore wrote:
>
>> Well, will table based functionality work?  .. i.e. a list of behavior
>> parameters?
>>
> Indeed, consider the case of the interface between C++ objects and
> JavaScript in Firefox or the similar system in Windows.   The common data
> structure from both sides is a table of function pointers.  It's literally
> the vtbl for the class on the C++ side.  Using operator overloading on the
> C++ side, one can think of normal looking C++ expressions as just indexes
> into tables of functions.    `+' would call the add function, and so forth,
> and the table entries could be swapped for other implementations.
>  Meanwhile, on the JavaScript side [or insert your favorite interpreted
> language here] the table is generated at runtime, and function call table
> entries encapsulate the function name in a closure, but actually always call
> the same interpret entry points.
> Marcus
>
>
>
> ============================================================
> FRIAM Applied Complexity Group listserv
> Meets Fridays 9a-11:30 at cafe at St. John's College
> lectures, archives, unsubscribe, maps at http://www.friam.org
>



-- 
Doug Roberts
[email protected]
[email protected]
505-455-7333 - Office
505-670-8195 - Cell

<<332.gif>>

============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

Reply via email to