X-Git-Url: http://nitlanguage.org diff --git a/lib/symbol.nit b/lib/symbol.nit index 1e9fb67..2a26fa6 100644 --- a/lib/symbol.nit +++ b/lib/symbol.nit @@ -10,8 +10,7 @@ # You are allowed to redistribute it and sell it, alone or is a part of # another product. -# Symbol classes -# FIXME: Should be deprecated soon +# Library for simple interning of strings module symbol redef class String @@ -32,8 +31,5 @@ end # A symbol is a unique immutable string class Symbol private var string: String - redef fun to_s do return _string.to_s - - # Only used by String::to_symbol - private init(s: String) do _string = s + redef fun to_s do return string.to_s end