[erlang-questions] Obj-C bridge

Joel Reymont joelr1@REDACTED
Sun Aug 12 14:06:50 CEST 2007


On Aug 12, 2007, at 2:09 AM, Christian S wrote:

> Objective-C looks like this:
>
>   [[[object doStuffWith:foo and:bar] moreStuff] lastStuffUsing: baz];

I'm in favor of modifying the parser to add the !! notation (aliased  
to !) and then doing

A = object !! [{dostuffWith, foo}, {and, bar}],
B = A !! [moreStuff],
C = B !! [{lastStuffUsing, baz}]

What do you think?

I also think that I would rather add the Obj-C runtime functions as  
Erlang BIFs than to use the FFI. I definitely want the bridge to run  
inside the Erlang VM so I'm still don't know how to best combine the  
Erlang runtime with that of Obj-C. Cocoa wants its own run loop which  
could be a problem.

	Joel

--
http://wagerlabs.com








More information about the erlang-questions mailing list