[plt-scheme] ffi: cant define (_ptr o _int)

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Sat Jul 8 00:35:58 EDT 2006

With ffi I cant seem to do

(define output-int (_ptr o _int)) or anything like that. Why is this?
This fails:

(define output (_ptr o _int))
(define blah (get-ffi-obj "blah" lib (_fun output -> _int)))

Welcome to MzScheme version 350, Copyright (c) 2004-2006 PLT Scheme Inc.
ffi:blah: expects 1 argument, given 0

So I tried:
(define (output) (_ptr o _int))
(define blah (get-ffi-obj "blah" lib (_fun (output) -> _int)))

But that also fails.

Posted on the users mailing list.