On 3/13/13 2:00 PM, Benjamin Striegel wrote:
Somewhat off-topic, but why are extern functions written as

     extern "ABI" fn(T) -> U

Rather than using an attribute?

     #[abi = "ABI"]
     extern fn(T) -> U

It seems like a very bizarre special case.

Because the ABI is part of the type and not just part of the declaration.

Patrick

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

Reply via email to