Re: Green Card and Exceptions

2003-06-13 Thread Alastair Reid
On Friday 13 June 2003 3:37 am, Matthew Donadio wrote: Hi all, I have a couple of questions about Green Card and exceptions. [...] This definition works, but it ignores the return code from the library function. The various return codes are from an enum defined in a header file. I would

Re: Green Card and Exceptions

2003-06-13 Thread Matthew Donadio
Alastair Reid wrote: The %fail statements (described in the last few paragraphs of http://www.haskell.org/greencard/downloads/greencard-latest/type-sig.html) consist of two C expressions. For example: %fail {f == NULL} {errstring(errno)} The first is a test for failure. The second