[squeak-dev] The Inbox: Morphic-hjh.1453.mcz
K K Subbu
kksubbu.ml at gmail.com
Sat Jun 16 17:21:59 UTC 2018
On Saturday 16 June 2018 10:27 AM, H. Hirzel wrote:
> Another solution could be to do the test_in_ method #allTileScriptingElements.
>
>
> Give back an empty collection
>
> (self respondsTo: #isTileScriptingElement) ifFalse: [^OrderedCollection new].
>
> PasteUpMorph>>
> allTileScriptingElements
> "Answer a list of all the morphs that pertain to tile-scripting. A
> sledge-hammer"
>
> | all morphs |
> morphs := IdentitySet new: 400.
> (self respondsTo: #isTileScriptingElement) ifFalse: [^OrderedCollection new].
> self allMorphsAndBookPagesInto: morphs.
Should the respondsTo check occur before initializing morphs? Why init
morph if the check leads to a return?
Regards .. Subbu
More information about the Squeak-dev
mailing list
|