Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!scramble.lm.com!news.math.psu.edu!news.cse.psu.edu!uwm.edu!math.ohio-state.edu!jussieu.fr!fdn.fr!r2d2.fdn.org!uunet!in2.uu.net!newsfeed.internetmci.com!newsxfer2.itd.umich.edu!newsxfer.itd.umich.edu!qiclab.scn.rain.com!gemstone.com!servio!servio!aland
From: aland@servio.slc.com (Alan Darlington)
Subject: Re: Object implementation of method = in Visual Works 2.0
Message-ID: <1996May13.180718.11388@gemstone.com>
Sender: news@gemstone.com (USENET News)
Nntp-Posting-Host: servio
Organization: GemStone Systems, Inc., Beaverton OR, USA
References: <4n68f9$fmg@nw101.infi.net>
Date: Mon, 13 May 1996 18:07:18 GMT
Lines: 25

Vikas Malik <vmalik@dc.infi.net> writes:
> I recently found that Visual Works defines = method in Object class as 
> 
> = anObject
> 
> ^self == anObject
> 
> In VW, Object new = Object new  returns false which is incorrect.

Sorry, this _is_ correct, and you will get the same result in any
version of Smalltalk that I know about.  You have created two new
instances of class Object.  Since they are _not_ the same instance,
#== must report false, as you found.

> Does anyone knows how is = method defined in Digitalk's Visual
> Smalltalk and other STs ?

In VisualAge, the = method calls:

    <primitive: VMprObjectEqualEqual>

which is the exact same code for method #== (unsurprisingly :-)

  Cheers,
  Alan
