I'm using V8 to run a single context, and I would like to implement weak handle-based destructors for my C++ objects. My current understanding of this is that these aren't guaranteed to be called at program shutdown. So my current objective is to keep a list of active objects, and delete them explicitly when the program ends. For this, I would need a dictionary.
However, I'm not really too keen to bring in STL maps, or Boost libraries into my program for this one small task. In terms of performance and memory footprint, would I be better off using that, rolling my own dictionary, or using a Javascript object to keep a list of callbacks? Is this even the best way of doing things? --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
