nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model_viewer: use premultiplied colors on clouds and atmospheric layers
[nit.git]
/
lib
/
symbol.nit
diff --git
a/lib/symbol.nit
b/lib/symbol.nit
index
d3a27ec
..
2a26fa6
100644
(file)
--- a/
lib/symbol.nit
+++ b/
lib/symbol.nit
@@
-10,9
+10,8
@@
# You are allowed to redistribute it and sell it, alone or is a part of
# another product.
# You are allowed to redistribute it and sell it, alone or is a part of
# another product.
-# Symbol classes
-# FIXME: Should be deprecated soon
-package symbol
+# Library for simple interning of strings
+module symbol
redef class String
# Get the unique corresponding to the string
redef class String
# Get the unique corresponding to the string
@@
-31,9
+30,6
@@
end
# A symbol is a unique immutable string
class Symbol
# 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
end