dini icon indicating copy to clipboard operation
dini copied to clipboard

reading twice a config file that changed would not overwrite old in-memory config

Open fabricemarie opened this issue 8 years ago • 2 comments

Fix a bug where reading twice a config file that changed would not overwrite the old in-memory config. The previous version would simply append the new version (with the same section name) in the section array and it would be ignored.

fabricemarie avatar Mar 11 '17 06:03 fabricemarie

Thanks for pull request, however I think that we should not break the API compatibility for any bugfix. I am willing to merge this if it is backwards compatible (speaking of making section children a hashmap).

robik avatar Mar 11 '17 09:03 robik

The sections and subsections work the same way as they used to from outside.

The only incompatible change is:

-    public IniSection[] sections() @property
+    public IniSection[string] sections() @property

fabricemarie avatar Mar 11 '17 12:03 fabricemarie