SpaceTally dNu: in SpaceTally>>#spaceForInstance:depth:seen:

tim Rowledge <[email protected]> Mon, 3 Aug 2026 16:09:43 -0700
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
--Apple-Mail=_FF6AFE39-CE4B-4290-83F5-7180B0273755
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Looks like some confusion was introduced in the SpaceTally class a while =
back; =E2=80=98Mirror=E2=80=99 is initialized in the class init method =
but set to nil in the #cleanUp method *and never re-set*. Otherwise it =
is only referred to in SpaceTally>>#spaceForInstance:depth:seen: and not =
in any of the other SpaceTally>>#spaceForInstance* methods.=20

Moving the #initialize method to the instance side appears to fix this.

--Apple-Mail=_FF6AFE39-CE4B-4290-83F5-7180B0273755
Content-Disposition: attachment;
	filename="SpaceTally initialize.1.cs"
Content-Type: application/octet-stream;
	x-unix-mode=0600;
	name="SpaceTally initialize.1.cs"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF'=46rom=20Squeak6.1rc2=20of=202=20August=202026=20[latest=20=
update:=20#23945]=20on=203=20August=202026=20at=204:08:50=20pm'!=0D=
"Change=20Set:=09=09SpaceTally=20initialize=0DDate:=09=09=093=20August=20=
2026=0DAuthor:=09=09=09tim=20Rowledge=0D=0DMove=20the=20SpaceTally=20=
#initialize=20method=20to=20the=20instance=20side=20of=20the=20class=20=
where=20it=20will=20actually=20get=20run=20before=20the=20tally=20=
starts"!=0D=0D=0D!SpaceTally=20methodsFor:=20'initialize-release'=20=
stamp:=20'tpr=208/3/2026=2016:00'!=0Dinitialize=0D=0D=09"Provides=20=
access=20to=20mirror=20primitives.=20Cache=20this=20once=20to=20avoid=20=
expensive=20thisContext=20at=20every=20access."=0D=09Mirror=20:=3D=20=
Context=20newForMethod:=20CompiledMethod=20toReturnSelf.=20"avoid=20=
dangling=20references=20to=20the=20current=20context=20or=20stack"!=20!=0D=
=0DSpaceTally=20class=20removeSelector:=20#initialize!=0D=

--Apple-Mail=_FF6AFE39-CE4B-4290-83F5-7180B0273755
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii



tim
--
tim Rowledge; [email protected]; http://www.rowledge.org/tim
To err is human; to forgive, beyond the scope of the Operating System.



--Apple-Mail=_FF6AFE39-CE4B-4290-83F5-7180B0273755
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--Apple-Mail=_FF6AFE39-CE4B-4290-83F5-7180B0273755--