[racket] How to pass <(box unsigned-int)> to com-invoke?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 15 08:53:20 EST 2014

At Fri, 10 Jan 2014 18:17:18 +0500, Cynede Heather wrote:
> My try:(com-invoke fsc "Connect" "" (box +0))exact error:Connect: expected 
> argument of type <(box unsigned-int)>; given: '#&0
>
> How to pass <(box unsigned-int)> to com-invoke?

Does it work to use `type-describe` on the argument?

 (com-invoke fsc "Connect" "" 
             (type-describe (box +0) '(box unsigned-int)))



Posted on the users mailing list.