On 10/2/13 4:33 AM, Daniel Micay wrote:
It seems a global constant would be enough rather than doing an allocation.

Only for &fn though, since those never get freed. For ~fn we would still need the allocation, so you don't try to call free() on a global constant. (We could do some address space checking to make it work, I guess, but it seems not worth the trouble.)

Patrick

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

Reply via email to