[squeak-dev] FFI: Pass a Smalltalk String as part of a Structure

Udo Schneider Udo.Schneider at homeaddress.de
Thu Oct 22 19:30:14 UTC 2009


Hi,

I defined an FFI Structure using

MyStruc class>>fields
	^#( #path 'char*) )

After calling define Fields I see that the wrappers are generated. 
However I not quite sure how to pass a Smalltalk String in.

Something like

MyStruc new path: '/home/udos/'

does not work.

Any pointers?

CU,

Udo




More information about the Squeak-dev mailing list