[Prev][Next][Index][Thread]

Re: c-ffi question involving c-struct



Keith Playford <keith.playford@pobox.com> writes:

> Except this doesn't work in Dylan where t is a struct type. However,
> there's also:
> 
>   (Dylan) pointer-value-address(tarray, index: i) == (C) &(tarray[i])
> 
> which allows you to do what you want:
> 
>   let key-input = make(<LPINPUT*>, element-count: 3);
>   pointer-value-address(key-input, index: 0).type-value := 0;

Yep, that did the trick. Thanks Keith.

Chris.
-- 
http://www.double.co.nz/dylan



References: