Merge: Serialization support SimpleCollection and Map, also bug fixes
authorJean Privat <jean@pryen.org>
Wed, 20 May 2015 00:30:22 +0000 (20:30 -0400)
committerJean Privat <jean@pryen.org>
Wed, 20 May 2015 00:30:22 +0000 (20:30 -0400)
commit42c96a218048ec556e098270db2829d552f15bee
treec2e4f400f7c5e1d1fcfe725b2d50c1bbe78b2a41
parent018e3451d3d65ccd1f2865e5802bcf72b49b1565
parent7bafcd52fdbf540fcce2061eb2074e50b3879203
Merge: Serialization support SimpleCollection and Map, also bug fixes

This PR is the result of using Nit serialization to implement game saving/loading in WBTW.

Update the serialization to work with (or avoid) the new auto constructors.

Support serializing Sets and Maps.

The `is_same_serialized` fix a problem where two instances were wrongly serialized as being the same. Because it previously used a `HashMap` (and thus `==`), two different _empty_ arrays were serialized as one and resulted in a single object on deserialization.

Once this and #1348 are merge, I'll update the calculator example to use the serialization.

Pull-Request: #1352
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>