X-Git-Url: http://nitlanguage.org diff --git a/lib/symbol.nit b/lib/symbol.nit index d3a27ec..b865017 100644 --- a/lib/symbol.nit +++ b/lib/symbol.nit @@ -12,7 +12,7 @@ # Symbol classes # FIXME: Should be deprecated soon -package symbol +module symbol redef class String # Get the unique corresponding to the string @@ -31,9 +31,6 @@ end # A symbol is a unique immutable string class Symbol - 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 + private var string: String + redef fun to_s do return string.to_s end