<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Folks --<br>
I'm new to this list. I'm learning squeak by by creating some artsy
objects which create designs according to mathematical algorithms
(based on Schillinger's Mathematical Basis of the Arts). It seemed
like a good idea to add the constant Phi to the Float class to keep
from recalculating it. (Phi is the Golden Ratio -- the limit ratio of
the Fibonacci series.)<br>
<br>
Now, when I try to file out my change set, I get the error message:<br>
<br>
<i>"An instance variable was added to class Float and it is not copied
in the method veryDeepCopyWith:<br>
Please rewrite it to handle all instance variables.<br>
See DeepCopier class comment."</i><br>
<br>
When I look at the DeepCopier class comment, I have no clue what I'm
supposed to do. Does this new instance variable need to be copied
somewhere? When the class Float was recompiled, shouldn't that have
added the new class variable to the appropriate dictionary? The
instance variable is referenced from the class side:<br>
<br>
phi<br>
"Answer the constant, Phi."<br>
^ Phi<br>
<br>
in exactly the same way as pi or any of the other constants initialized
in the Float class. Does it need to be copied somewhere else?<br>
<br>
In addition, this error message seems unnecessarily vague. Please
rewrite "it" -- what does "it" refer to? The instance variable (phi),
the Float class, the veryDeepCopyWith: method? Or the class variable
(Phi)? When I look carefully at all of these, none of them look like
they should need rewriting. <br>
<br>
Unless I should do (just a guess):<br>
<br>
Float veryDeepCopyWith: phi<br>
<br>
in a workspace. But I'd like to know why before I try it. Anyone have
any ideas on this? Any help would be appreciated. Thanks.<br>
<br>
--Chris Kermiet<br>
<br>
</body>
</html>