lib/bufferized_ropes: Force insert_at for + operation
authorLucas Bajolet <r4pass@hotmail.com>
Tue, 29 Jul 2014 18:24:12 +0000 (14:24 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Tue, 29 Jul 2014 18:24:12 +0000 (14:24 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

lib/bufferized_ropes.nit

index a47bc0a..18cfa4c 100644 (file)
@@ -105,6 +105,8 @@ redef class RopeString
                end
        end
 
+       redef fun +(o) do return insert_at(o.to_s, length)
+
        # Inserts a String `str` at position `pos`
        redef fun insert_at(str, pos)
        do