I'd say go ahead and remove them. For most of the native modules I've written, 
I use unsafe pointers instead of ty_native, and that seems to work better for 
me.

-Eric

On Sep 30, 2011, at 7:16 PM, Patrick Walton wrote:

> I think native types might have outlived their usefulness at this point. We 
> can represent them as ints, and their type safety can be achieved via tags.
> 
> So
> 
> native mod ... { type ModuleRef; }
> 
> becomes
> 
> tag ModuleRef = int;
> 
> This has the nice benefit of being able to use sizes other than words; e.g. 
> u64. (This was the use case that motivated this post.)
> 
> Thoughts on removing them?
> 
> Patrick
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev

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

Reply via email to