dmd 1.057 and 2.041 release

bearophile bearophileHUGS at lycos.com
Mon Mar 8 12:12:24 PST 2010


Steven Schveighoffer:
> Tell me how you would parse the following text serialization string for a  
> string[]:
> 
> hello world how are you
> 
> What if it was a string[][]?
> 
> Compare that to:
> 
> [hello world, [how are, you]]

You are missing something:

["hello world", ["how are", "you"]]

:-)
(And yes, there are simple solutions if the strings contains " or ').
Bye,
bearophile


More information about the Digitalmars-d-announce mailing list