Hi, 

I am trying to use v8 as a script engine for my application.


I have a few questions: 

I first create an ObjectTemplate, then use
it to create object as return values of functions. But in the other way,
when I receive an object as an argument of a function, how can I check
that the object in argument is linked to the expected object template?
Of course, I can use an internal field of the object, and set this field
to an identifier string and then compare it to the expected value... but
I was wondering if there is a better way? 

second, If I have in my
c/c++ programs something like: int numElems; elemType *elems; I can
always create a function to return the number of elements, and another
one to return the nth element, but it will be more valuable if I can
create an Array object and linked it or some kind of iterator... Is this
possible? How? 

Third, If I want to call a specific javascript function
from C/C++, I can create a string that call the function and execute
it... is there a quicker way? 

and last... (at least for the moment
;-)), how can I retrieve from C/C++ if a given script has a variable
defined and its value? 

Thanks a lot in advance, 

Pierre 

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to