[squeak-dev] FFI/Alien: Structures with arrrayed fields

Schwab,Wilhelm K bschwab at anest.ufl.edu
Mon Mar 15 13:29:04 UTC 2010


Hello all,

I am faced with something like the following:

struct complex { double real; imaginary; };
struct ugly {
	int gratuitousSize;
	long importantStuff[64];
	complex * moreImportantStuff[64];
};

The question is how to explain this to FFI?  The closest things I have found always seem to be byte arrays, so the "third element" in the arrays of #fields is not well-revealed.  Does anyone know whether it is additive or multiplicative, and/or how to use it to make sense of the above struct?

Bill




More information about the Squeak-dev mailing list