nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: move some examples/* into specific subdirectories of their lib
[nit.git]
/
lib
/
symbol.nit
diff --git
a/lib/symbol.nit
b/lib/symbol.nit
index
d3a27ec
..
1e9fb67
100644
(file)
--- a/
lib/symbol.nit
+++ b/
lib/symbol.nit
@@
-12,7
+12,7
@@
# Symbol classes
# FIXME: Should be deprecated soon
# Symbol classes
# FIXME: Should be deprecated soon
-package symbol
+module symbol
redef class String
# Get the unique corresponding to the string
redef class String
# Get the unique corresponding to the string
@@
-31,7
+31,7
@@
end
# A symbol is a unique immutable string
class Symbol
# A symbol is a unique immutable string
class Symbol
- var _string: String
+ private var string: String
redef fun to_s do return _string.to_s
# Only used by String::to_symbol
redef fun to_s do return _string.to_s
# Only used by String::to_symbol