Re: ini library in OSX

2014-12-23 Thread Robert burner Schadek via Digitalmars-d-learn
as you properly know, ini files don't support sections arrays. If you know all items at compile time, you could create structs for all of them, but that is properly not what you're looking for.

Re: ini library in OSX

2014-12-22 Thread Robert burner Schadek via Digitalmars-d-learn
On Saturday, 20 December 2014 at 08:09:06 UTC, Joel wrote: On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner Schadek wrote: On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote: On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner Schadek wrote: some self promo:

Re: ini library in OSX

2014-12-22 Thread Joel via Digitalmars-d-learn
On Monday, 22 December 2014 at 11:04:10 UTC, Robert burner Schadek wrote: On Saturday, 20 December 2014 at 08:09:06 UTC, Joel wrote: On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner Schadek wrote: On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote: On Thursday, 11 September 2014

Re: ini library in OSX

2014-12-20 Thread Joel via Digitalmars-d-learn
On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner Schadek wrote: On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote: On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner Schadek wrote: some self promo: http://code.dlang.org/packages/inifiled I would like an example?

Re: ini library in OSX

2014-10-13 Thread Robert burner Schadek via Digitalmars-d-learn
On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote: On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner Schadek wrote: some self promo: http://code.dlang.org/packages/inifiled I would like an example? go to the link and scroll down a page

Re: ini library in OSX

2014-10-11 Thread Joel via Digitalmars-d-learn
On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner Schadek wrote: some self promo: http://code.dlang.org/packages/inifiled I would like an example?

Re: ini library in OSX

2014-09-09 Thread Dejan Lekic via Digitalmars-d-learn
On Monday, 8 September 2014 at 06:32:52 UTC, Joel wrote: Is there any ini library that works in OSX? I've tried the ones I found. I think they have the same issue. Joels-MacBook-Pro:ChrisMill joelcnz$ dmd ini -unittest ini.d(330): Error: cannot pass dynamic arrays to extern(C) vararg

Re: ini library in OSX

2014-09-09 Thread Dejan Lekic via Digitalmars-d-learn
Or this one: http://dpaste.dzfl.pl/1b29ef20#

Re: ini library in OSX

2014-09-09 Thread Joel via Digitalmars-d-learn
On Tuesday, 9 September 2014 at 08:57:30 UTC, Dejan Lekic wrote: Or this one: http://dpaste.dzfl.pl/1b29ef20# Thanks Dejan Lekic, I'll look them up.

Re: ini library in OSX

2014-09-09 Thread Joel via Digitalmars-d-learn
How do you use this ini file parser? - http://dpaste.dzfl.pl/1b29ef20 module rangeini; import std.stdio: File, writeln; import std.range; import std.algorithm: canFind; import std.string: strip, splitLines; import std.traits: Unqual; import std.conv: text; struct ConfigItem {

Re: ini library in OSX

2014-09-09 Thread Joel via Digitalmars-d-learn
Here's a failed attempt of mine - after the line. I would usually have stuff like the following (right next): Ini ini; ini=new Ini( cfg ); ini[section][key] = value; --- import ini; void main() { import std.conv; //load string data; int i;

ini library in OSX

2014-09-08 Thread Joel via Digitalmars-d-learn
Is there any ini library that works in OSX? I've tried the ones I found. I think they have the same issue. Joels-MacBook-Pro:ChrisMill joelcnz$ dmd ini -unittest ini.d(330): Error: cannot pass dynamic arrays to extern(C) vararg functions ini.d(387): Error: undefined identifier 'replace', did