<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Juan,<br>
</font></p>
<p><font size="4">I Forgot to mention one obvious point: of course
it will also be perfectly fine to me if we go with the design
you proposed, modulo the other observations I posted in my
previous message.<br>
</font></p>
<p><font size="4">Thanks</font><br>
</p>
<div class="moz-cite-prefix">Le 15/05/2022 à 08:20, Hilaire
Fernandes a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:e2da47d0-d7b7-6fde-5561-47cd9b007620@drgeo.eu">
<p>I don't really like much, it makes the class very verbose and
harder to understand, added redirections, but I don't have clear
workaround now. Analyzing now...<br>
I am wondering: could it be possible to put Cuis in hold while
initializing, it will avoid race condition, and kept the class
simple, hum not really fancy, no idea of the implication of a
such approach.<br>
Another idea is to use two class variables <font
face="monospace" color="#97082d">PreferenceReadAccess</font>
and <font face="monospace" color="#97082d">PreferenceWriteAccess</font>.
In normal operation the two reference the same Dictionary.
During initialization, they are decoupled and <font
face="monospace" color="#97082d">PreferenceWriteAccess</font>
is set to a new empty dictionary. <font face="monospace"
color="#97082d">#at:</font> and <font face="monospace"
color="#97082d">#at:put:</font> will be rewritten accordingly
to use these variables.</p>
<p>It will keep the class simpler. I think I like this approach.<br>
</p>
<p>What do you think? If you agree I can make write the code.</p>
</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="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>