Parsers for C written in Erlang

Ryan Rawson <>
Thu Aug 17 19:01:11 CEST 2006


I can't really say about CL, but Objective C has excellent run time
discovery.  Additionally all data members of a class are private, so
there is no way or reason to allow access to them.  Only the messages
matter, these are all run-time discoverable.

In fact, why bother with run-time type inspection?  Just send a
message to an object and be prepared to handle the exception...

-ryan

On 8/17/06, Mats Cronqvist <> wrote:
> Joel Reymont wrote:
> > I'm thinking of how I would approach the Cocoa bridge in Erlang. There
> > are to basic approaches: parsing the Objective-C header files to wrap
> > the classes and using the runtime type inspection.
>
>    this is The Right Thing (tm), methinks. i do it for gtkNode. alas, i cheat
> and use h2def.py (from www.pygtk.org). i don't know if that'll work for
> objective-C, though.
>
>    mats
>



More information about the erlang-questions mailing list