Question about Phobos library file ("ti_uint.d")

Marcio Faustino m.faustino.remove at gmail.com
Sat Jan 13 08:50:59 PST 2007


Hi everyone,

Why does the method compare of the class TypeInfo_k (in file
"src/phobos/std/typeinfo/ti_uint.d") isn't simply:

int compare(void *p1, void *p2) {
    return *cast(uint*) p1 - *cast(uint*) p2;
}

as the same method of the class TypeInfo_h (in file
"src/phobos/std/typeinfo/ti_ubyte.d")?


More information about the Digitalmars-d-learn mailing list