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
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
2 matches
Mail list logo