Make "this" the implicit receiver!

This commit is contained in:
Bob Nystrom
2014-02-12 17:33:35 -08:00
parent 92971d1cfa
commit 756fe0d920
13 changed files with 217 additions and 51 deletions

View File

@ -1,7 +1,7 @@
class List {
toString {
var result = "["
for (i in 0...this.count) {
for (i in 0...count) {
if (i > 0) result = result + ", "
result = result + this[i].toString
}