# Symbol classes
# FIXME: Should be deprecated soon
-package symbol
+module symbol
redef class String
# Get the unique corresponding to the string
# 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