[squeak-dev] A Curious Method

Casey Ransberger casey.obrien.r at gmail.com
Mon Jul 12 07:04:00 UTC 2010


I was showing Squeak off to a friend today, and while clicking around in a
browser to show off the system's organization, I ran across this method:

BlockStartLocator>>
pushClosureCopyNumCopiedValues: numCopied numArgs: numArgs blockSize:
blockSize
"Answer the size of the block"
^blockSize

There's no method tag / pragma here... so why does this method need three
parameters? I see six implementers of the message, though... are the extra
params there to deal with polymorphism without blowing up? If so, that's
kind of interesting, because I hadn't recognized that pattern before.

I was scratching my head and thought I'd share:)

-- 
Casey Ransberger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100712/d2814b66/attachment.htm


More information about the Squeak-dev mailing list