nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75189ba
)
lib/standard/ropes: Bases of RopeString class.
author
Lucas Bajolet
<r4pass@hotmail.com>
Wed, 4 Jun 2014 20:38:26 +0000
(16:38 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Wed, 4 Jun 2014 20:38:26 +0000
(16:38 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/standard/ropes.nit
patch
|
blob
|
history
diff --git
a/lib/standard/ropes.nit
b/lib/standard/ropes.nit
index
ea7237d
..
fc74932
100644
(file)
--- a/
lib/standard/ropes.nit
+++ b/
lib/standard/ropes.nit
@@
-76,3
+76,12
@@
abstract class Rope
redef fun length do return root.length
end
redef fun length do return root.length
end
+# Rope that cannot be modified
+class RopeString
+ super Rope
+ super String
+
+ redef fun to_s do return self
+
+end
+