Random D geekout

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Apr 19 22:53:42 PDT 2012


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


More information about the Digitalmars-d mailing list