Ben,

Can you expand on your example?
I'm sure this is piece of cake for you, but I'm not getting what you mean.

All the samples I can find show using ObjectTemplate and the 
SetCallAsFunctionHandler() to handle construction from the C++ side.

var o = new MyObject();
var x = new MyObject();
o.doSomething(x);

In the above example doSomething() needs to simply validate its 1st 
argument is of type "MyObject".
That's it.

Apparently HasInstance() (from FunctionTemplate) is for this purpose.
But ObjectTemplate doesn't have a HasInstance() method.

My object has to do more than just be constructed.
It's got other methods too.
How can I fire a C++ constructor function with a FunctionTemplate and have 
other methods on the object?
Without a more concrete example I'm lost. 

I do appreciate the willingness to help. THANK YOU.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to