[FFI] Passing array of structures?

Andreas Raab andreas.raab at gmx.de
Sat May 20 05:46:50 UTC 2006


nicolas cellier wrote:
> I can pass an ExternalStructure by value foo(struct bidule).
> 
> I can pass an ExternalStructure by address foo(struct bidule *)

Which is precisely equivalent to foo(struct bidule[])

> But how to pass an array of structure ?
> I just cannot figure the smalltalk class to do that...
> ExternalData does deal only with atomic arrays...
> 
> Of course, i can loosely declare foo(char *),..
> Anything better ?

That is exactly the right way to pass arrays.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list