Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
140 stars 1 forks source link

Super calls on static methods #80

Open Mercerenies opened 2 years ago

Mercerenies commented 2 years ago

Follow-on to #16. super should support static methods.

In GDScript, static methods can call superclass methods (provided that those methods are also static) freely, so we need to support this. Currently, we will get a "no such variable self" error.

Open question for how to handle the closure case: If we call a superclass static method inside a closure within a static method, we need to close around the name of the current class, which is... interesting. We also need to be able to generate static __gdlisp_super proxy methods.