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

Could you add multiple inheritance ? #12

Closed
Sygmei opened this issue Feb 18, 2016 · 6 comments
Closed

Could you add multiple inheritance ? #12

Sygmei opened this issue Feb 18, 2016 · 6 comments

Comments

@Sygmei
Copy link

Sygmei commented Feb 18, 2016

With the current version, it seems that you can only set one base class. Is it possible to add multiple base class ?

@satoren
Copy link
Owner

satoren commented Feb 19, 2016

I'll think about it.

@Sygmei
Copy link
Author

Sygmei commented Feb 19, 2016

Thanks a lot :)

@Sygmei Sygmei closed this as completed Feb 19, 2016
@satoren
Copy link
Owner

satoren commented Feb 22, 2016

It was implemented.

@ThePhD
Copy link

ThePhD commented Feb 22, 2016

I'm interested in how inheritance / multiple inheritance is done in kaguya: was it implemented in the latest commit? Or somewhere else? I'd like to take a look!

@satoren
Copy link
Owner

satoren commented Feb 22, 2016

https://github.com/satoren/kaguya/tree/multiple_inheritance_support
It is worked on this branch. (it was merged to master)

source code is kaguya/object.hpp and kaguya/metatable.hpp

@Sygmei
Copy link
Author

Sygmei commented Feb 22, 2016

Thanks a lot, I needed that for my project :D

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

3 participants