4 Jan
2001
4 Jan
'01
7:47 a.m.
Wed, 3 Jan 2001 15:31:43 -0700, Alastair Reid <reid@cs.utah.edu> pisze:
Which is all just my long-winded way of saying I agree with Simon that we should not do this. Even if f.e.d. could return nullFunPtr, we should not do this because we can express it better using a Maybe.
I retrieve the value from a C struct, so I can't just use Maybe. I must explicitly compare with nullFunPtr, which is not a big deal, but IMHO the only sensible thing freeHaskellFunPtr could do with a null pointer is to ignore it, rather than crashing. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTÊPCZA QRCZAK