nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git]
/
lib
/
standard
/
symbol.nit
diff --git
a/lib/standard/symbol.nit
b/lib/standard/symbol.nit
index
d953f36
..
db15b75
100644
(file)
--- a/
lib/standard/symbol.nit
+++ b/
lib/standard/symbol.nit
@@
-18,7
+18,7
@@
private import hash
redef class String
# Get the unique corresponding to the string
redef class String
# Get the unique corresponding to the string
- meth to_symbol: Symbol
+ fun to_symbol: Symbol
do
var symbol_dictionary = once new HashMap[String, Symbol]
if symbol_dictionary.has_key(self) then
do
var symbol_dictionary = once new HashMap[String, Symbol]
if symbol_dictionary.has_key(self) then
@@
-33,8
+33,8
@@
end
# A symbol is a unique unmutable string
class Symbol
# A symbol is a unique unmutable string
class Symbol
- attr _string: String
- redef meth to_s do return _string.to_s
+ 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
# Only used by String::to_symbol
private init(s: String) do _string = s