Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if one interface inherits from another one? #275

Open
ArnaudBuchholz opened this issue Aug 14, 2018 · 1 comment
Open

What if one interface inherits from another one? #275

ArnaudBuchholz opened this issue Aug 14, 2018 · 1 comment
Assignees

Comments

@ArnaudBuchholz
Copy link
Owner

gpf.interfaces.promisify and gpf.interfaces.isImplementedBy might have a problem (because of _gpfObjectForEach)

@ArnaudBuchholz
Copy link
Owner Author

One solution would consist in making sure that the interface (namely B) inheriting from the other (namely A) would redefine all methods (so that forEach would work). It could be implemented inside gpf.define.

Another approach is to include recursion in all interface related methods OR provide a mechanism to extract all method of a given interface (so that the code could loop on it).

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

No branches or pull requests

1 participant