[squeak-dev] FFI type for 'char[12]'?

Tony Garnock-Jones tonyg at leastfixedpoint.com
Wed Sep 16 15:04:33 UTC 2020


Thanks, Tom and Marcel.

On 9/16/20 10:11 AM, Beckmann, Tom wrote:
> for ExternalStructure fields definitions I worked around this by exploding the array, as in
> #((str1 'char') (str2 'char') (str3 'char') (str4 'char') (str5 'char'))

Yes, this occurred to me but I ended up not doing it :-P

> I also have an experimental set of changes that adds an ExternalArrayType to support this, however it still has some untested corner cases. I'll investigate getting it merged to FFI soon.

The ExternalArrayType idea sounds good! Looking forward to it.

For now I've just parsed the structure by hand out of a ByteArray, which
works well enough until ExternalArrayType or similar lands.

Regards,
  Tony


More information about the Squeak-dev mailing list