![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archive[JSON] Changing the class of an object after its construction
From: Raphael Jolivet <raphael.jolivetNO_SPAM_THANKS@laposte.net>
Date: Sun Nov 20 2005 - 16:14:23 CET
Hello there,
I have a bunch of objects that I store in a text file (to store
Let's say I have my object :
obj1 = {
Then, serialized in a string :
To get the object back (when loading it from prefrences), i do almost :
Ok, my object is now back, but actually, the source object was
What if I want my new object to have all these cool methods ?
If I do :
Any Idea ?
Thanks in advance,
Raphael
|