inline-rust icon indicating copy to clipboard operation
inline-rust copied to clipboard

Consider matching box types to ForeignPtr

Open harpocrates opened this issue 7 years ago • 1 comments

Consider

newtype Box t = Box { unBox :: ForeignPtr t }

It might be interesting to match Box<T> types to Box t. The useful part would be being able to associated a Haskell finalizer with Boxs we get back from Rust (the finalize would just look like [rust| () { $(x: Box<..>).drop() } |]).

harpocrates avatar Dec 27 '17 17:12 harpocrates

The Box type here is what I want if -XLinearTypes goes through.

harpocrates avatar May 15 '18 03:05 harpocrates