nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add default values for some primitive type attributes.
[nit.git]
/
lib
/
standard
/
array.nit
diff --git
a/lib/standard/array.nit
b/lib/standard/array.nit
index
4e5c678
..
78beeb3
100644
(file)
--- a/
lib/standard/array.nit
+++ b/
lib/standard/array.nit
@@
-325,7
+325,7
@@
special IndexedIterator[E]
_index = 0
end
_index = 0
end
- redef readable attr _index: Int
+ redef readable attr _index: Int = 0
attr _array: AbstractArray[E]
end
attr _array: AbstractArray[E]
end
@@
-510,7
+510,7
@@
special CoupleMap[K, E]
end
# The last positive result given by a index(1) call
end
# The last positive result given by a index(1) call
- attr _last_index: Int
+ attr _last_index: Int = 0
# Where is the `key' in `_item'?
# return -1 if not found
# Where is the `key' in `_item'?
# return -1 if not found