On 3/15/11 2:17 PM, Rafael Avila de Espindola wrote:
I am sure this is not safe in general, but it would be sad to have to go
back to C/C++ for any unsafe operation.

I think we can make do with a small number of unsafe primitives: "peek" and "poke" to get started, and some sort of unsafe cast operation to cast between blobs of memory and Rust records. Rust records are fortunately laid out more or less exactly the same as C structs.

Naturally, all of these would mark the caller unsafe.

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to