[QUESTION?]FFI idiom for array of char *

Thomas E. Morgan tmorgan at acm.org
Sun Feb 18 14:54:05 UTC 2001


Does anyone have an example of using the FFI support code to manufacture something that
would be accepted as an array of C strings in an FFI call; the equivalent of:

     char *names[]

in C?

I think I see what to do, either indirecting a few times thru ExternalData instances, or
picking a small fixed array size and making an ExternalStructure for that--but I also
forsee many spectacular crashes before I get this straight.

Any advice gratefully received.

   ...Tom M







More information about the Squeak-dev mailing list