c++ - Node.js / v8 assignment operator overloading -
my question simple, how define behavior of assignment operator in v8 / node.js?
assume have class in c++ domain have set method. when write js:
var jsinstance = new cppwrappedclass(params1); jsinstance = new cppwrappedclass(params2); the second call new cppwrappedclass(...) totally replaces contents of jsinstance new one. want achieve when second call happens, in c++ backend, set method gets called. aka define behavior of assignment operator.
is possible?
Comments
Post a Comment