Errata and other notes for "The Art of Assembly Language" |
||
The Art of Assembly Language Programming
2010/5/3: In section 12.14, Calling Base Class Methods, AoA2e (AoA 2nd edition) states that HLA does not let you directly call methods and you must use an indirect call through the virtual method table in order to call the parent class' version of some method. As of HLA v2.8, this is no longer necessary. HLA v2.8 (and later) supports a special "super" reserved word that you can use to directly call the parent's version of some method within a child class' method. You would use the "super" keyword in a similar manner to "this", e.g., type parentClass: class . . . method m(i:int32); . . . endclass; childClass: class inherits( parentClass ); . . . override method m; . . . endclass; . . . method childClass.m(i:int32); begin m; . . . // Call parent class' version of m: super.m( i ); . . . end m;
2010/05/10: Page 364
|