Wed, 3 Jan 2001 15:31:43 -0700, Alastair Reid <[EMAIL PROTECTED]> 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 * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK


_______________________________________________
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi

Reply via email to