[Newbies] MorphMorph new / Morph newStandAlone Difference ?
cdshaffer at acm.org
Thu Jul 25 15:07:46 UTC 2019
This isn’t much help but….
Just browsing implementors of #newStandAlone and then #initializeStandAlone (send from #newStandAlone), it looks like it has to do with creating an “example” morph that can “stand alone” in a parts bin. Some morphs definitely act differently in the parts bin (like the trash morph). To see the difference in one example, look at StringMorph’s #initialize vs #initializeStandAlone and note the differences between:
StringMorph new openInWorld.
StringMorph newStandAlone openInWorld.
> On Jul 25, 2019, at 10:59 AM, John-Reed Maffeo <jrmaffeo at gmail.com> wrote:
> What is the difference between these new messages? I created objects using both and I don't see anything different other (object number ?)
> Morph(1309470) < new
> Morph(364522) < newStandAlone
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners