Templates and Associative Arrays - disregard the above post; this one has working code.

dsimcha dsimcha at yahoo.com
Mon Jan 21 18:02:25 PST 2008


Wow, that is an impressive hack.  While it's certainly better than nothing, this
is one area where it would be nice if the template system in D improved to make
this cleaner and more obvious.  I am trying to learn/use D to replace scripting
languages for programs involving huge CSV files, because the scripting languages
are painfully slow for this.  I have a small custom library in PHP (which I use
for general-purpose, not just web, scripting) for handling CSVs, and am trying to
port it to D, and creating simple, clean templates for processing arrays without
knowing at compile time whether they are regular or associative is a major hangup.



More information about the Digitalmars-d mailing list