From 9e88d190f645c5625af76f81075c856eb02cdf87 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Tue, 29 Jul 2014 14:24:12 -0400 Subject: [PATCH] lib/bufferized_ropes: Force insert_at for + operation Signed-off-by: Lucas Bajolet --- lib/bufferized_ropes.nit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bufferized_ropes.nit b/lib/bufferized_ropes.nit index a47bc0a..18cfa4c 100644 --- a/lib/bufferized_ropes.nit +++ b/lib/bufferized_ropes.nit @@ -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 -- 1.7.9.5