<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
Hi Hillaire,<br>
<br>
I since I am quite in hurry I am adding the methods I need to my
project Package straight away.<br>
<br>
After Phil explanation I know what will happen in case of doubly
defined methods. <br>
Since my package is loaded last from the boot script it will
overwrite whatever it finds in its way.<br>
<br>
I am not using the Image as a storage medium, everything comes from
files and I <br>
reboot Cuis every morning, at least. <br>
<br>
That '(pre|post)PackageInstall' (or similar name) in Phil video is
really interesting, I will use it.<br>
<br>
I supposed that since the JSON package package is one of the items
that gets retrieved<br>
automatically from Cuis-Dev i should have just said the proposed
changes here and that somebody would <br>
have taken the appropriate decision. From your answer I deduce I was
wrong. No problem.<br>
I will fork and submit the changes to the JSON package maintainer. <br>
<br>
<br>
<br>
Bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 8/15/21 4:59 PM, Hilaire Fernandes
via Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3c641ee0-315e-1a87-c832-dbd48b4e59c7@drgeo.eu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="+1">Phil already discussed what happens in that
situation.<br>
</font></p>
<p><font size="+1">Now from a practical point of view, regarding
Smalltalk way, the right move is to propose to the JSON
package maintainer to add your class side method
readFromString: to the JSON package.</font></p>
<p><font size="+1">After all, if you find this added method is
convenient to read Json files, it is likely to be convenient
for other users of the JSON package.</font></p>
<p><font size="+1">If the package maintainer does not agree, I
don't know. May be the safest way will be to subclass Json in
your own package and add the methods you need.<br>
</font></p>
<p><font size="+1">Best</font></p>
<p><font size="+1">Hilaire</font><br>
</p>
<div class="moz-cite-prefix">Le 14/08/2021 à 19:46, Nicola
Mingotti via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:b48084a8-5ae2-1484-179a-7fb504962845@gmail.com"><font
size="+1"><font face="monospace">I defined a method in my
package 'Wunderbar', it is 'readFromString', which<br>
goes into class 'Json class side' and method category
'*Wunderbar-DB'.<br>
<br>
Now, suppose a day in the future I upgrade Cuis and
'readFromString'<br>
is now defined into 'Json class'. What will happen when i
try to load 'Wunderbar' package ?<br>
<br>
. Do i get an error for method name overlap ?<br>
. If not, is there any criteria by which one method should
be called instead of the other<br>
for example: looking at which method category it belongs to
?<br>
</font></font></blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu" moz-do-not-send="true">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu" moz-do-not-send="true">http://blog.drgeo.eu</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<br>
</body>
</html>