[ANSI-Smalltalk] A list of interesting methods,
not present in the ANSI standard
Andres Valloud
andres.valloud at gmail.com
Thu Mar 20 03:41:54 GMT 2008
Paolo,
Regarding perform:, I just feel that it's not symmetric with
doesNotUnderstand: in that the former takes selectors and the latter
receives messages. Perhaps we should have performMessage:?
Also, mustBeBoolean is missing... (the message sent by at least some VMs
when they try to "send" ifTrue:ifFalse: and the receiver is not a boolean).
Andres.
On Mon, Mar 17, 2008 at 1:03 AM, Paolo Bonzini <bonzini at gnu.org> wrote:
> Andres Valloud wrote:
> > Hello.
> >
> > I decided to go after the messages in Object first. Out of the list,
> > which I reproduce below,
> >
> > Object class>>initialize
> > Object>>=
> > Object>>==
> > Object>>addDependent:
> > Object>>allOwners
> > Object>>become:
> > Object>>broadcast:
> > Object>>broadcast:with:
> > Object>>broadcast:with:with:
> > Object>>broadcast:withArguments:
> > Object>>broadcast:withBlock:
> > Object>>changed
> > Object>>changed:
> > Object>>copy
> > Object>>deepCopy
> > Object>>dependents
> > Object>>displayOn:
> > Object>>displayString
> > Object>>ifNil:
> > Object>>ifNil:ifNotNil:
> > Object>>ifNotNil:
> > Object>>ifNotNil:ifNil:
> > Object>>instVarAt:
> > Object>>instVarAt:put:
> > Object>>isReadOnly
> > Object>>makeReadOnly:
> > Object>>perform:
> > Object>>postCopy
> > Object>>release
> > Object>>removeDependent:
> > Object>>shallowCopy
> > Object>>storeLiteralOn:
> > Object>>storeOn:
> > Object>>storeString
> > Object>>update:
> >
> >
> > I think the following ones are good candidates for discussion. Since
> > the list includes = and ==, I added hash and identityHash.
> >
> > Object>>=
> > Object>>==
> > Object>>hash
> > Object>>identityHash
>
> Actually, these are already in the standard. My mistake.
>
> > Object>>become:
> > Object>>ifNil:
> > Object>>ifNil:ifNotNil:
> > Object>>ifNotNil:
> > Object>>ifNotNil:ifNil:
> > Object>>instVarAt:
> > Object>>instVarAt:put:
>
> These are indeed good candidates for discussion.
>
> > Object>>perform:
>
> This one is already in the standard, but I wanted to propose an
> extension whereby you could pass a Message to #perform: (a
> <failedMessage> in standardese).
>
> Paolo
>
> _______________________________________________
> ANSI-Smalltalk mailing list
> ANSI-Smalltalk at lists.openskills.org
> http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openskills.org/pipermail/ansi-smalltalk/attachments/20080319/a1100846/attachment.htm
More information about the ANSI-Smalltalk
mailing list