Hi,
I'm trying to understand how to embind the various types I want to expose 
to JS, and if I understand it correctly, the embind documentation seems 
incomplete. 
The docs state that JS cannot call destructors automatically, and then 
suggests this code:

var x = new Module.MyClass;x.method();x.delete();


   1. Does this mean that all objects defined with class_ have a built-in 
   JS method called delete, that calls their destructor? 
   2. If so, is this the same for already available types, such as smart 
   pointers and vectors? If not, how do I dispose of smart pointers and 
   vectors?
   3. How are raw pointers freed? The code examples 
   4. How do value types play with smart pointers and vectors? Can they be 
   contained? 
   5. Can a value_object be an element in a value_array? Can a value_array 
   be a field in a value_object? 
   6. Can either value types be used as members of a class_?

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/d95b139d-430b-4629-b21f-ac85f24d5b96%40googlegroups.com.

Reply via email to