Adjustable Halo Policy

Chris Reuter cgreuter at calum.csclub.uwaterloo.ca
Sat Jul 17 03:54:25 UTC 1999


On Thu, Jul 15, 1999 at 01:25:33AM -0400, Bob Arning wrote:
> On Thu, 15 Jul 1999 00:03:11 -0400 Chris Reuter <cgreuter at calum.csclub.uwaterloo.ca> wrote: 
> >The disadvantage is that there's a size penalty (one extra instance
> >variable in each morph.)
> 
> Chris,
> 
> I presume that most morphs would likely share some default value. If
> so, why not implement the exceptional cases as properties and limit
> the overhead to those morphs that actually have a non-standard
> requirement? See Morph>>valueOfProperty:, e.g..

Good point.  I'll have to do that.

Hmmm.  The default could be something like #useOwnerPolicy which, oddly
enough, uses the owner's policy.  Then make sure WorldMorphs always
have a sane policy and ta-da, morphs will automatically dictate
submorphs' halo policies.

I'll post the changes in a few days.


			       --Chris





More information about the Squeak-dev mailing list