<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Luciano, Juan,</font></p>
<p><font size="4">Was busy elsewhere.<br>
</font></p>
<div class="moz-cite-prefix">Le 04/06/2022 Ã 14:10, Luciano
Notarfrancesco a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAL5GDyqUxL1=d+AwKJkwoNJ_4S_aFpTiu3k7nBRGXf7LKxdn3g@mail.gmail.com">
<div>
<div dir="auto">Interesting. I will think more about this before
giving an opinion about your proposal. But in the meantime I
wonder, what if every package had a dictionary of preferences?
Would that work with the way you arranged your code in your
packages? I think this could also address some of Gerald’s
concerns regarding modularity.</div>
</div>
</blockquote>
<p><font size="4">What I proposed imply one or more dictionaries per
application. We can make it explicit. Note however, as Juan
emphasized, it will not solve the problem of purging the system
from zombies preferences.</font></p>
<p><font size="4">
<blockquote type="cite">Your proposal makes me remember the
Windows Registry: A central repository of
preferences/options/configurations for all apps in the system.
It also has a hierarchical structure to support multiple
users. Some of the problems of this approach (in particular in
Windows) are:</blockquote>
I try to solve the preference problem for DrGeo needs with what
we have right now.</font></p>
<p>
<blockquote type="cite">I think it would be much better, as
Luciano also suggests, to use the central Preference registry
only for the base image, and have a good way to let packages
have their own.</blockquote>
<font size="4"> I will emphasis how the Pharo implementation based
on Pragma solves elegantly the problem:</font>
</p>
<p><font size="4">The methods (decorated with the ad-hoc pragma)
defining the preferences are removed when the application
package is unload, so do the application preferences. There is
nothing to clean up. What I like less, it is a bit complex.<br>
</font></p>
<p><font size="4">Hilaire<br>
</font></p>
<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="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>