[Newbies] Assignment

Mathieu Suen mathk.sue at gmail.com
Thu Aug 9 23:58:29 UTC 2007


#=
is equality comparaison

#==
is identity comparison

All the character is unique so is better (faster) to use #==.

You can see the default implementation of #= in Object

Object>>= other

	^self == other

	Mth



On Aug 10, 2007, at 1:45 AM, Blake wrote:

> Smalltalk has "=" and "=="



More information about the Beginners mailing list