Jason S <jmsachs@gmail.com> wrote:
Igor Tandetnik wrote:
Yes. Moreover, you are allowed not to support type info at all.
Scripts never read it anyway.
?
Both JSDB Javascript and MATLAB (the scripting hosts I would be using)
use typeinfo to handle parameter checking / list possible methods of
an object implementing IDispatch
OK. The script engines I'm familiar with (Microsoft supplied JavaScript
and VBScript engines, the ones IE uses to run scripts on an HTML page)
don't read type info. Others may, of course. Sorry for careless
generalization.
what about the back end of this, e.g. a series of name-value pairs
that can be marshalled-by-value? I guess it doesn't seem hard to
implement but if something already exists then I wonder if I should
use that instead.
I don't know of any reusable stock implementation.
See if this helps: any VARIANT can be marshalled and unmarshalled as
discussed here:
http://groups.google.com/group/microsoft.public.vc.atl/browse_frm/thread/245d50cc1bbb9497
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925