[Openmcl-devel] FF call by reference

Ron Garret ron at awun.net
Tue Jul 15 15:29:04 PDT 2008


I'm trying to call an ObjC method that takes a pointer to a pointer to  
an ns-error as an argument.  I tried this:

? (rlet ((err (:* ns:ns-error))) (#/foo: thing err)))
 > Error: Unknown foreign type: NS:NS-ERROR

And yet:

? ns:ns-error
#<OBJC:OBJC-CLASS NS:NS-ERROR (#x7FFF702C9D60)>

Even if this worked, it seems wrong because I'm passing in the pointer  
directly, not its address.  What's the Right Way to do this?

Thanks,
rg




More information about the Openmcl-devel mailing list