Status: New
Owner: ----

New issue 2256 by guoyongz...@gmail.com: How to expose C++ class in V8
http://code.google.com/p/v8/issues/detail?id=2256

I want to expose a C++ class in V8, which can create multi-objects in Javascript like this:
c++:
class Person{
public:
string name;
string sayHello();
}

Javascript:

var p1 = new Person();
var p2 = new Person();
p1.name = "Jack";
p2.name = "Baron";
p1.sayHello();
p2.sayHello();


This is very similar to the "Accessing Dynamic Variables" in "Embedder's Guide".
(https://developers.google.com/v8/embed)

But I can not build it.
Is there anyone who had solve this problem? Send your code project to me, thank you!
My email:guoyongz...@gmail.com



--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to