[RFC] Ini parser

Robert Jacques sandford at jhu.edu
Fri Feb 17 19:30:17 PST 2012


On Thu, 16 Feb 2012 14:50:22 -0600, Robik <szadows at gmail.com> wrote:
> Greetings.
[snip]

>         // write foo.name1 value
>         writeln(ini.getSection("foo")["name1"].value);

I'd recommend using opDispatch to enable the following syntax:

writeln( ini.foo.name1 );

Skimming the code, I see a lot of re-implementation of std.algorithm, to say nothing of the more general issue of using O(N) linear search instead of an O(1) hash table.


More information about the Digitalmars-d mailing list