Potential bug in becomeForward:, need help!
Jon Hylands
jon at huv.com
Sun May 19 02:41:34 UTC 2002
On Fri, 17 May 2002 17:31:14 -0600, Frank Sergeant
<frank at canyon-medical.com> wrote:
> An alternate strategy would be to
> continue to use just the proxy but to add an instance variable to the
> proxy which would be nil when the real object was not materialized and
> would point to the real object when it was materialized.
This works, but it is better to have another instance variable as well -- a
boolean to indicate whether or not the reference is instantiated. If the
proxy ends up referencing nil (which is a perfectly valid thing to
reference), it will always look like it is not instantiated if you use nil
to signify that...
Later,
Jon
--------------------------------------------------------------
Jon Hylands Jon at huv.com http://www.huv.com/jon
Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
http://www.huv.com
More information about the Squeak-dev
mailing list
|