On Sat, 22 Dec 2012, Fernando Olivero wrote:

Well, the assignment within the and: block says it all…

Yeah, blame and flame everyone who doesn't write code the way you do...
But before you do that, tell me what's wrong with that assignment.


Levente


Fernando


On Sat, Dec 22, 2012 at 2:57 AM, Igor Stasenko <[email protected]> wrote:
      StringMorph>>boundsForBalloon
              "Some morphs have bounds that are way too big.  This is a 
contorted
      way of making things work okay in PluggableListMorphs, whose list
      elements historically have huge widths"

              | ownerOwner |
              ^ ((owner notNil and: [(ownerOwner := owner owner) notNil]) and:
                              [ownerOwner isKindOf: PluggableListMorph])
                      ifTrue:
                              [self boundsInWorld intersect: ownerOwner 
boundsInWorld]
                      ifFalse:
                              [super boundsForBalloon]

      --
      Best regards,
      Igor Stasenko.



Reply via email to