[Newbies] MorphMorph new / Morph newStandAlone Difference ?
David Shaffer
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.
David
> 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
>
> -jrm
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20190725/51c0d6a2/attachment.html>
More information about the Beginners
mailing list