[Cuis-dev] Parser gets confused when using $| in binary selectors

Hilaire Fernandes hilaire at drgeo.eu
Sat May 14 00:13:05 PDT 2022


Yes it is fine.

I am wondering: when executing "PreferenceNG initialize" in an image 
with vector graphics it seems to break the image. I guess a race condition.

To avoid this situation, I suggest you edit this method as follow:

PreferenceNG>>initialize
     ThePreferences ifNil: [ThePreferences _ Dictionary new].
...

It will allow to add the new preferences from the data array and reset 
the existing ones with the default values from the array (this what 
happen when requesting a new preference already in the system, it just 
updates the existing one). A few limitation:

  * It will not migrate type of existing preference (should be done by
    hand by inspecting the object or removing the whole preference and
    initialize again), I prevent it by purpose so a user does not mess
    up with the type.
  * it will not remove deprecated preferences (the ones not anymore in
    the data array). Should be removed by hand.

Hilaire

Le 13/05/2022 à 22:42, Juan Vuletich via Cuis-dev a écrit :
> Hilaire, please check that the use of Preference NG is reasonable.

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220514/5b9b2b18/attachment-0001.htm>


More information about the Cuis-dev mailing list