Objective-C and runtime type inspection
Bob Ippolito
bob@REDACTED
Thu Aug 17 22:29:09 CEST 2006
On 8/17/06, Joel Reymont <joelr1@REDACTED> wrote:
>
> On Aug 17, 2006, at 9:08 PM, Bob Ippolito wrote:
>
> > What we do in PyObjC is use the RTTI to determine the size of the
> > chunk to allocate, and return a tuple of (rval, output1, ...).
>
> What if you have an _in_ structure that you need to pre-populate?
You said that would be a binary.
> There's no way to get the size of that structure from Erlang unless
> there's a way to ask the c-node to give you the size of that
> structure somehow.
>
> Maybe a message that returns the size of each argument for a given
> selector?
Makes sense.
-bob
More information about the erlang-questions
mailing list