about summary refs log tree commit diff
path: root/src/lib/box.rs
blob: a4322c09be92f54ad3d242f2e4090f3e151a1a8e (plain)
1
2
3
4
5
6
7
8

export ptr_eq;

fn ptr_eq<T>(a: @T, b: @T) -> bool {
    let a_ptr: uint = unsafe::reinterpret_cast(a);
    let b_ptr: uint = unsafe::reinterpret_cast(b);
    ret a_ptr == b_ptr;
}