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

Implement mruby.value<T> with automated casting. #63

Open
dragostis opened this issue Mar 21, 2016 · 1 comment
Open

Implement mruby.value<T> with automated casting. #63

dragostis opened this issue Mar 21, 2016 · 1 comment

Comments

@dragostis
Copy link
Member

No description provided.

@dragostis dragostis self-assigned this Mar 21, 2016
@dragostis dragostis changed the title Implement mruby.to_value<T> with automated casting. Implement mruby.value<T> with automated casting. Mar 21, 2016
@dragostis
Copy link
Member Author

Not really easy to implement.

First of all, this function would require a Box<T: Any>. This would mean changing mrfn! to allocate everything on the heap.

Second of all, there is not easy way of adding Option<T> here. Downcasting Option<_> is not enough, and doing it manually pretty much defeats the purpose.

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