34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
From: jody at ldgo.columbia.edu (Jody Winston)
|
|
Date: 08 Apr 1999 10:19:36 -0400
|
|
Subject: Chaning instance methods
|
|
References: <370C2904.A6F4BD54@inrialpes.fr> <000801be8188$b59aa9a0$749e2299@tim> <370CC27E.ED2D0D59@inrialpes.fr>
|
|
Message-ID: <tx3pv5furd3.fsf@hog.ldgo.columbia.edu>
|
|
X-UID: 250
|
|
|
|
What I was trying to do was to dynamically change the runtime behavior of an
|
|
object instance by loading the new methods from a permanent store. Since this
|
|
wasn't easy to do, I now just save off all of the attributes, kill the
|
|
old object, create a new object, and restore the attributes.
|
|
|
|
This works, but it doesn't seem to be as elegant as having the ability
|
|
to replace methods.
|
|
|
|
--
|
|
Jody Winston
|
|
Manager SeisRes
|
|
Lamont-Doherty Earth Observatory
|
|
RT 9W, Palisades, NY 10964
|
|
jody at ldeo.columbia.edu, 914 365 8526, Fax 914 359 1631
|
|
|
|
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
|
|
address may not be added to any commercial mail list with out my
|
|
permission. Violation of my privacy with advertising or SPAM will
|
|
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
|
|
repeats.
|
|
|
|
|
|
|
|
|
|
|
|
|