
15 May
2003
15 May
'03
1:05 p.m.
Why not: isNullPtr = (==nullPtr) ? -- Hal Daume III | hdaume@isi.edu "Arrest this man, he talks in maths." | www.isi.edu/~hdaume On Thu, 15 May 2003, Christian Buschmann wrote:
Hi! Can someone tell me, how i can check, if a Ptr is a nullPtr. Now I am using this function, but I think its not a very nice one:
import Ptr
isNullPtr :: (Ptr a) -> Bool isNullPtr ptr = (minusPtr ptr nullPtr) == 0
Maybe someone has got a better idea...
christian
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe