Merge: introduce plain_to_s
authorJean Privat <jean@pryen.org>
Fri, 29 May 2015 01:49:02 +0000 (21:49 -0400)
committerJean Privat <jean@pryen.org>
Fri, 29 May 2015 01:49:02 +0000 (21:49 -0400)
commitd55330dca83c64c83541cff1ea45a0b333bda721
treed44cfe1c75d70fe941f11ba4e250cc6ee36c1a51
parent470cd273fa6a110cd62d4b01c51e73a5aa3a83c3
parentf718d7f9d8e62ee564eacca28d8a15c28ede05b4
Merge: introduce plain_to_s

In order to have a more POLA `to_s` on collections, it is required that a new method with the old behavior is provided for clients that need it (especially the interpreter that use it for superstrings).

the compiler use `native_to_s` for superstrings but `c_src/nitg` still use `to_s` on array, so a regeneration of the bootstrap is required before changing the behavior of `to_s` on collections.

Pull-Request: #1385
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/standard/file.nit
lib/standard/string.nit
tests/sav/nitserial_args1.res