David M. Karr (83) [Avatar] Offline
#1
Listing 12.16 shows another example of using invokeMethod to proxy or "pretend" method calls. What I don't understand is why it uses that mechanism here, instead of just defining instance methods "newPage", "destroyPage", and "updateBody"? The invocation process doesn't do anything special, it just invokes the named closure.