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

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -