I think it is probably better to allow tools like rust-bindgen tackle this problem. It may be cool if there is an elegant way to build in to the language, but I think it will require additional metadata to convert the pointers in to safe pointers. Opaque structs (like in your example) should generally be wrapped as classes and simply changing a prefix wouldn’t be able to solve that.
Eric On Feb 6, 2014, at 1:03 PM, Steve Klabnik <st...@steveklabnik.com> wrote: > Magnus, good to see you here! > > I think this idea sounds neat, but I'm not really able to judge if > it's technically a good idea or not. Seems mega useful though. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev