hi!
> test.toString = function() { return "[object MyType name="+this.name+"]";}
>
> for purposes of print(), you never need to explicitly call toString()
> - that will happen automatically.
Very nice solution, however I was hoping to be able to do that within
my C++ Code somehow without requiring to run some js code..
Anyone?
Thanks! Alex
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---