Merge: Fix virtual types in string
authorJean Privat <jean@pryen.org>
Sun, 1 Feb 2015 08:46:43 +0000 (15:46 +0700)
committerJean Privat <jean@pryen.org>
Sun, 1 Feb 2015 08:46:43 +0000 (15:46 +0700)
commit4b52524c59f04dfb2499f08f040394d6fcd9c699
treea9e83eb2b5497f11f70bbff20c1dc8037470c112
parentff3690cd5f71c366f9d77a6c6ffa210a7892c009
parent29d4598314f6bf8ba0cc7d350b71936941638a2a
Merge: Fix virtual types in string

`SELFTYPE` in String is used to dintinguish buffers from strings. Unfortunately it is sometime badly used.

This series try to at least improve thing so that operations on buffers do not crash at runtime.

Still, I think there is something fishy in the String vs Buffer API

Pull-Request: #1133
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>