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

Marcel Taeumel marcel.taeumel at hpi.de
Wed Sep 16 07:58:45 UTC 2020


Hi Tony,

such container types are still work-in-progress. :-/ For char[12], you can either use "string" or "char*", I suppose. "Foo x[5]" can be expressed through ExternalData, too, which would be "Foo*".

Best,
Marcel
Am 16.09.2020 09:49:20 schrieb Tony Garnock-Jones <tonyg at leastfixedpoint.com>:
Hi all,

Is there some way in the FFI to specify that an ExternalStructure has a
member whose type is like 'char x[12]'?

Similarly, given some ExternalStructure Foo, can I have another
structure that has a member like 'Foo x[5]'?

Tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200916/519ce505/attachment.html>


More information about the Squeak-dev mailing list