On Mon, Jul 8, 2013 at 6:45 PM, Lyndsey <[email protected]> wrote:

> Thank you Ben.  I assume you mean something like what's being done 
> here<http://stackoverflow.com/questions/6696706/node-js-native-addon-destructor-of-wrapped-class-doesnt-run>?
> I think the problem is that I'm not using node, and that would be needed to
> do the following, correct?
>
> point->Wrap(args.This());  //Where Wrap is available because the C++ Point
> class extends ObjectWrap (from node.h)
>
> I would like to do this in "pure V8" without using node.  Is that
> possible?  Am I making things too difficult?
>

Wrapping classes can be easily done without node but it gets really tedious
really quickly. There are several frameworks out there which can simplify
this. Here's one example (out of many) which demonstrates a generic
approach:

http://code.google.com/p/v8-juice/wiki/V8Convert_ClassCreator

but that particular one was massively broken by recent v8 API changes, so i
unfortunately cannot recommend it to you. Others on this list have authored
such tools, many of which possibly still work since the (still ongoing) v8
overhaul started, and maybe one of them can suggest a generic solution for
you.



-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

-- 
-- 
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