mrusty icon indicating copy to clipboard operation
mrusty copied to clipboard

Implement mruby.value<T> with automated casting.

Open dragostis opened this issue 9 years ago • 1 comments

dragostis avatar Mar 21 '16 14:03 dragostis

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.

dragostis avatar Mar 21 '16 15:03 dragostis