iamhwani / v8-juice

Automatically exported from code.google.com/p/v8-juice
Other
0 stars 0 forks source link

could I custom create object and destory object in V8Convert_ClassCreator ? #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
V8Convert_ClassCreator is easy to bind struct class...
but I don't want to directly use New Class() or Class() to create object.
Is there any easy way to do it?

I can do skipping ClassCreator_Factory to do nothing then adding create and 
destroy function to use v8 binding object.
I think it not a right way to do it.
I guess maybe have a good way to skip v8 binding object when using ClassCreator 
to create a object template.

Original issue reported on code.google.com by rswa...@gmail.com on 3 Sep 2012 at 3:52

GoogleCodeExporter commented 9 years ago
I am too foolish.....
skip this.  thanks orz

Original comment by rswa...@gmail.com on 3 Sep 2012 at 4:38

GoogleCodeExporter commented 9 years ago
i love it when it's so easy! :-D

How did you solve it?

Original comment by sgbeal@googlemail.com on 4 Sep 2012 at 5:43

GoogleCodeExporter commented 9 years ago
I add a NoneWeakClassCreator modified from ClassCreator.
Removed auto binding and creating object  from constructor.
Using MakeIndepenece to avoid auto unbinding.
Using wrap and unwrap functions to custom binding object.

Original comment by rswa...@gmail.com on 4 Sep 2012 at 9:58