[squeak-dev] FFI | How to declare pointer to external structure in #fields?

Marcel Taeumel marcel.taeumel at hpi.de
Mon May 18 14:05:35 UTC 2020


Hi, there!

In the #fields method of a new ExternalStructure, how can I express a pointer to another external structure?

First, non-pointer works as expected:
^ #( (other MyStruct) )

Second, this just treats it as a void*, which returns a generic ExternalData:
^ #( (other 'MyStruct*') )

Third, this gives me a debugger:
^ #( (other MyStruct *) )


:-)

Best,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200518/cc321eca/attachment.html>


More information about the Squeak-dev mailing list