FFI and str5ucts with "nested arrays"

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Fri May 23 12:00:59 UTC 2003


Am Freitag, 23.05.03 um 03:48 Uhr schrieb Ivo Roessling:
>>> The "problem" for me is how to handle the "char name[8]",
>>
>> I think what you want to use in the #fields method for this is
>>
>> 	(name 'char' 8)
>>
> mhhh... sometimes i really wonder why to go the easy way when there's
> a hard one, too?! ;))

Just be careful that the number in there is the size in *bytes*, not a 
multiplicity of the type's size.

So to get an int[8] you'd have to declare

	(bla 'long' 32)

-- Bert



More information about the Squeak-dev mailing list