I am writing a addon for javascript.
EX:
In my addon, define a car structure.
struct car { 
int carId; 
string carName;
...... 
};

v8::Handle<v8::Value> GetCar(const v8::Arguments &args)
{  
     struct car my_car;
     .......
    // how can I return V8 handle so that I can use this vector in 
    // my javascript module
    return my_car; 
}

I want to return my_car, and how to get my_car->carId and other contents in 
javascript?

-- 
-- 
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/d/optout.

Reply via email to