nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/standard/ropes: Bases of RopeString class.
[nit.git]
/
lib
/
standard
/
ropes.nit
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
+# Rope that cannot be modified
+class RopeString
+ super Rope
+ super String
+
+ redef fun to_s do return self
+
+end
+