[comp.lang.smalltalk] A small question.

rewari@osu-eddie.UUCP (06/04/87)

From: Pawan Rewari <rewari>

A small but fundamental question came up in a talk we had recently. I
thought someone in net-land might help.

In the expression	sum <- 3 + 4
a message is sent to the object 3 (receiver) to execute the method '+'
with the object '4' as argument. The receiver '3' then returns a new
object '7' which will become the new object referred to by the variable 'sum'.

The question is whether there is a single object '7' in the system and
is a pointer to this object returned
	or
Does the primitive method '+' creates a new instance of an object with value
'7' and returns a pointer to it.

Also, everything is an object in smalltalk, so what is the distinction
between the value of an object and an object itself.

Please address your responses to me.
Thanks in advance..................................	pawan.