length method
Implementation
int length(){
var i = 0;
Environment environment = this;
while(environment.enclosing != null) {
environment = environment.enclosing!;
i++;
}
return i;
}
int length(){
var i = 0;
Environment environment = this;
while(environment.enclosing != null) {
environment = environment.enclosing!;
i++;
}
return i;
}