[squeak-dev] The Inbox: Morphic-dtl.1360.mcz

David T. Lewis lewis at mail.msen.com
Sun Nov 12 16:05:27 UTC 2017


Indeed, that was my concern with respect to correctness.

  Morph>>world
      ^owner isNil ifTrue: [nil] ifFalse: [owner world]


Nevertheless, I have updated the two inbox packages to use "self world" in
morph methods instead of "Project current world". We can easily switch it
back if it seems dangerous.

Dave

On Sun, Nov 12, 2017 at 10:54:19AM -0500, Bob Arning wrote:
> One caveat is that "self world" for a Morph will answer nil if the morph 
> is not currently *in* a world.
> 
> 
> On 11/12/17 10:11 AM, David T. Lewis wrote:
> >The "self world" expression works for morphs, and certainly it is easier to read.
> >It may be somewhat slower, although that would not be a concern in most 
> >usages.
> >
> >My main concern is correctness, because failures in this area can hang up the
> >UI entirely, and errors are difficult to debug.
> >
> >When transitioning from one project to another the World variable is set to
> >the new project's world in #finalEnterActions:.  Thus the World global is a
> >shortcut reference to the world of the current project, and that is what 
> >leads me to suggest the expression "Project current world".
> 




More information about the Squeak-dev mailing list