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

Reply via email to