Re: unserialize variants

2013-09-02 Thread gedaiu
Thanks for the response... I thought there is a faster way for that. I will use the standard lib or i will use json to store that into a file. Thanks, Bogdan On Sunday, 1 September 2013 at 16:19:32 UTC, Ali Çehreli wrote: On 08/31/2013 10:22 PM, gedaiu wrote:> Hi, > > i want to save data

Re: unserialize variants

2013-09-01 Thread Ali Çehreli
On 08/31/2013 10:22 PM, gedaiu wrote:> Hi, > > i want to save data from an array of variants into a file. I saw that > to!string format the array content in a nice way... I don't think the format is sufficient for recreating the array: import std.variant; import std.conv; import std.stdio; stru

unserialize variants

2013-08-31 Thread gedaiu
Hi, i want to save data from an array of variants into a file. I saw that to!string format the array content in a nice way... There is a way of converting the resulted string back to an array of varianta? thanks, Bogdan