[racket] Compilation

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Mar 2 12:48:25 EST 2011

At Mon, 28 Feb 2011 18:09:23 +0000, José Lopes wrote:
> It seems that blind calls are working, although I have just performed 
> some small tests so far.
> 
> I have replaced the line
> 
>      pTypeDesc = getMethodType((MX_COM_Object *)argv[0], name, invKind);
> 
> [...]
>
> Even though it is working, the error message is still being printed. How 
> can I supress it?

See the exception-cathcing part of

  http://docs.racket-lang.org/inside/exceptions.html#%28part._imz~3atempcatch%29

but it's messy. A better solution is probably to change getMethodType()
so that it takes a flag indicating whether to raise an exception or
just return NULL.



Posted on the users mailing list.