<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">Hi Juan, <br>
</font></p>
<p>What will be left to a PasteUpMorph? What a PasteUpMorph can do a
Morph can't. For DrGeo I still use a PasteUpMorph for the
drawable, but I am not sure it is mandatory, and it is for
historical reason because of tile programming then<br>
</p>
<p>If I am right, in Squeak's PasteUpMorph the purpose is let user
drop morphs of any kind for visual programming with tiles. <br>
</p>
<p>In The Cuis base image, all instances of PasteUpMorph are World.</p>
<p>By the way I met this funny behavior:</p>
<blockquote>
<pre><b><font color="#a11818">PasteUpMorph newWorld;newWorld;newWorld. (repeat at will)</font></b>
<b><font color="#a11818"><b><font color="#a11818">PasteUpMorph allInstances </font></b>
<b><font color="#a11818">=> #( [world] [world] [world] [world] [world]) </font></b>
PasteUpMorph allInstances
=> #( [world] [world]) </font></b></pre>
</blockquote>
<p>Duplicated World seems to vanish.</p>
<p>Then:<br>
</p>
<pre><b><font color="#a11818">PasteUpMorph newWorld openInWorld</font></b></pre>
<p>makes the environment unhappy.<br>
</p>
<p>As long as there is only one World correctly handled in Cuis, it
makes sense to safeguard the environment with a singleton or alike
behavior.<br>
</p>
<p>AFAIK, there is no such things as Squeak's Project in Cuis.</p>
<p>Take care</p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 23/10/2020 à 20:13, Juan Vuletich
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite" cite="mid:5F931D2F.4040208@jvuletich.org">Today,
the morphic world is an instance of PasteUpMorph. But PasteUpMorph
is a more general class, just an area where you can play with
submorphs. For World functionality, there is an instance var
called 'worldState' that holds an instance of WorldState. This
means that PasteUpMorph has two very different purposes, and that
the World is actually split in two classes.
<br>
<br>
I want to make the world an instance of a new class, WorldMorph,
that is subclass of PasteUpMorph. This allows pushing down a lot
of world-specific stuff from PasteUpMorph, making the world a self
sufficient, meaningful object, and remove the ugly WorldState
class. All this also means a reduction in the loc count for these
objects by 10%.
<br>
<br>
Still, before pushing these changes, I'd like to know if there's a
downside, or any feedback.
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="https://pouet.chapril.org/@hilaire">https://pouet.chapril.org/@hilaire</a></pre>
</body>
</html>