openAsMorph refactoring (was Re: TestRunner Ui in 3.1)

Randal L. Schwartz merlyn at stonehenge.com
Thu Sep 20 18:13:23 UTC 2001


>>>>> "Doug" == Doug Way <dway at riskmetrics.com> writes:

Doug> Maybe there could also be an instance-side Model>>open method,
Doug> which then does the isMorphic test and calls either openAsMorph
Doug> or openInView.  (Model class>>open would just be "self new
Doug> open".)  Or, maybe it should all stay on the class side.  Hmm,
Doug> looking at the implementors of #openAsMorph and #open, I see
Doug> they're mixtures of instance-side and class-side... more cleanup
Doug> to do.  Any thoughts on this?

I said this a year ago.  So yes, do it.  There's no reason every
single thing that "opens" should need to test what kind of world it's
in.

    If you type code twice, something's not proper,
    if you type code thrice, it's a show-stopper!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!




More information about the Squeak-dev mailing list