FFI bug? (was Passing a char[] inside a struct to an FFI call)

Andreas Raab andreas.raab at gmx.de
Sat Dec 11 07:27:01 UTC 2004


>> Unless you want to add the missing feature, yes.
>
> I'm still floundering here...is the missing feature the fact that the 
> framework doesn't support array types (except when they can be represented 
> as pointers)?

Yes.

> Are you suggesting an implementation which might take
> a field spec like:
>
> #((someNumber 'long' 4) (someString 'byte[255]' ))
>
> and generate the desired accessors?

I am not suggesting any particular implementation but the above looks pretty 
good to me.

> It seems to just be an issue with the type system/spec parsing. Am I off 
> target here?

No, you're totally on target.

> Is this subtle and hard to fix or just waiting for an willing victim?

I don't think so. It is just something that I never had a need for and so it 
never gots added.

> One can never tell and I hate to re-visit something which
> has been tried and abandoned.

Well, I haven't tried it - and if someone else has, then I don't know about 
it.

Cheers,
  - Andreas




More information about the Squeak-dev mailing list