[gambit-list] Converting uint32 to scheme object

Alex Silva asandroq at gmail.com
Wed Jan 6 08:11:32 EST 2016


Hallo,

On 06/01/16 12:47, Adam wrote:
> One way would be to return a special C "int-or-boolean" structure and
> then access it via special accessors. E.g. (let* ((r (your-c-call))) (if
> (struct=false? r) #f (struct-int r))) ?
> 

Well, I am sure it is possible to pack an uint32 inside a scheme object,
using the API, and return that. I just don't know the right incantation. :)

Cheers,
-alex
http://unendli.ch/




More information about the Gambit-list mailing list