On 20.04.2012 9:19, F i L wrote:
Denis Shelomovskij wrote:
A shorter variant:
---
void delegate(string, string)[string] dgs = [
"name" : (key, value) { d.name = value; },
"phone": (key, value) { d.phone = value; },
"age" : (key, value) { d.age = to!int(value); },
... // whole bunch of other stuff to
// parse different attributes
];


How about putting it on dlang?( [your code here] )

--
Dmitry Olshansky

Reply via email to