News for hackers. Stuff that matters.
Re:Crafting Interpreters: Superclasses by kazinator on Wednesday March 18, 2020 @01:45PM (#22619267)
But this OP_INHERIT instruction isn't for calling methods; it's just for setting up the inheritance relationship.
Re:Crafting Interpreters: Superclasses by _old_dude_ on Wednesday March 18, 2020 @03:05PM (#22620120)
The opcode OP_INHERIT takes two classes as parameter on the stack so this is equivalent to do a function/method calls with the class and the super class and let the function do the magic of filling the vtable, etc.