[ENH] or [FIX] Morphs initialization doubled

Oca Emilio eoca at afip.gov.ar
Fri May 3 18:33:18 UTC 2002


Morph class>>initializedInstance used to say:
*************
'From Squeak3.3alpha of 30 January 2002 [latest update: #4816] on 3 May 2002
at 2:59:36 pm'!
!Morph class methodsFor: 'new-morph participation' stamp: 'efo 5/3/2002
14:59'!
initializedInstance
        "Answer an instance of the receiver which in some sense is
initialized.  In the case of Morphs, this will yield an instance that can be
attached to the Hand after having received the same kind of basic
initialization that would be obtained from an instance chosen from the 'new
morph' menu.
        Return nil if the receiver is reluctant for some reason to return
such a thing"

        ^ (self class includesSelector: #descriptionForPartsBin)
                ifTrue:
                        [self newStandAlone]
                ifFalse:
                        [self new initialize]! !
                                 ^^^^^^^^^^
*************

but Morph class>>new says:
*************
'From Squeak3.3alpha of 30 January 2002 [latest update: #4816] on 3 May 2002
at 2:59:49 pm'!

!Morph class methodsFor: 'instance creation'!
new

        ^ super new initialize! !
                   ^^^^^^^^^^
*************

So I removed 'initialize' from Morph class>>initializedInstance
Is it ok?

	Emilio

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Morph class-initializedInstance.st
Type: application/octet-stream
Size: 687 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020503/2d5d173b/Morphclass-initializedInstance.obj


More information about the Squeak-dev mailing list