hust-marx / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Need Variant Datatype for scripting #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We need to either find or write a C++ variant datatype.  It must be able to
handle:

string
boolean
double
int32
void
*SMART_POINTER 

The smart pointer could contain an IDispatch ActiveX object, an NPObject,
or possibly another object type; to be determined.

We could possibly use boost::any or boost::variant, though we probably want
to be able to have it do automatic type conversion, since this will be used
to communicate with javascript, which is loosely typed.

Original issue reported on code.google.com by taxilian on 18 Sep 2009 at 10:42

GoogleCodeExporter commented 9 years ago
I have chosen cdiggins::any for this.  It is typedefed as FB::variant

Original comment by taxilian on 28 Oct 2009 at 2:21