> Yes, but vec[u8] would have to keep a reference to it, to prevent > premature unmapping. Would that fit into the existing type system?
No, it wouldn't. You'd just need to somehow ensure that the vec is no longer used when the obj is finalized. I think ensuring that its refcount is 1 and failing otherwise would handle this. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
