beeware/batavia

Difficulties implementing classmethod

lielfr opened this issue · 0 comments

So, the classmethod builtin is actually a decorator which is meant to allow functions access to the class definition. In order to implement this in Batavia, we need to actually get the parent of the function, which cannot be done in "pure" javascript because a function can have multiple parents.
Does anyone have suggestions on how it should be implemented?