I have finished chapter 11 and project 11 and do not understand the requirement of having
this as argument 0 in method symbol table.
Whenever we access fields of the
this object within a method, we do it using variables that are already present in the class symbol table.
Whenever we compile a method, we set the pointer 0 based on argument 0, so it is important to pass argument 0 from the caller but none of it requires having
this in the symbol table of callee.
Only case I can think of to have
this in symbol table of method is if
this was used like an identifier within a method. What am I missing?