Re: [racket] Accessing the fields of FFI/C data types

2011-01-14 Thread Jay McCarthy
An enum is not a structure, so it has no fields. That ctype will convert the numbers 0 and 1 to the symbols 'a and 'b respectively. Jay 2011/1/14 Lewis : > Hi all, > > Take the simple example below; > > (require ffi/unsafe) > (define _foo (_enum '(a b))) > > how would one access the a field of _f

[racket] Accessing the fields of FFI/C data types

2011-01-14 Thread Lewis
Hi all, Take the simple example below; (require ffi/unsafe) (define _foo (_enum '(a b))) how would one access the a field of _foo? I could find nothing about this in the FFI section on ctypes. thanks, Lewis _ For list-related administrative task