Hello, I'm trying to structure my custom module. Basically, I have C++ classes Tiger, Dog, Cat, ... that inherit from Animal. What would be the most efficiant way to wrap them to provide a custom module?
As far as I can see it: * Wrapper class inheritance is not feasable, because static members (like constructor_template to check HasInstance) are not specialized per subclass. Also, there is no such thing as virtual static to determine the most specific static member on runtime * templates are not good, because specialization, especially with extensions, means duplicating all code * if I provide one wrapper per class, that would duplicate a lot of code as well Can you give any hints? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
