Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Difficulties implementing classmethod #701

Open
lielfr opened this issue Dec 13, 2017 · 0 comments
Open

Difficulties implementing classmethod #701

lielfr opened this issue Dec 13, 2017 · 0 comments

Comments

@lielfr
Copy link
Contributor

lielfr commented Dec 13, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant