> Looks interesting, but unfortunately it's still useless to me since it
> doesn't seem to support arrays of varying depth, nor boolean arrays I
> believe.
>
> ps. Isn't this throw statement unreachable? (throw new
> Exception("Identifier not found")
erm.. yes.. should have been commented out.
Looks interesting, but unfortunately it's still useless to me since it
doesn't seem to support arrays of varying depth, nor boolean arrays I
believe.
ps. Isn't this throw statement unreachable? (throw new Exception("Identifier
not found");)
pps. Since you're going for D-styled, shouldn't boolea
Templated !!
This is the first time I use templates.
please comment
module ddata.ddata;
import std.stdarg;
import std.stdio;
import std.regexp;
import std2.string;
import std2.traits;
import std2.conv;
private char[][] _file;
private char[] _identifier;
private TypeInfo _type;
private int _row;
Attached my first attempt to load int and int[] from a D-styled data file.
Adding the functions to support the other types is trivial (hope to be using
templates :)
but supporting an arbitrary deep array isn't that obvious to me yet.
Please comment :)
ps. it uses std2 because of the possible tem