<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/b6b3ba9e65e001f4a0dbca1489eda7d0"
  from="Brendan Miller &lt;catphive.lists@g...&gt;"
  author="Brendan Miller"
  date="2006-02-18T21:49:11"
  subject="osx caml bindings?"
  prev="2006/02/e15ad84ba8a327339b7cf1b1364b31ca"
  next="2006/02/1960cff274fc22ecd5e68e74b16e589d"
  prev-thread="2006/02/3c23f567cce717e9a1937158a34569ce"
  next-thread="2006/02/1960cff274fc22ecd5e68e74b16e589d"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="osx caml bindings?">
<msg 
  url="2006/02/b6b3ba9e65e001f4a0dbca1489eda7d0"
  from="Brendan Miller &lt;catphive.lists@g...&gt;"
  author="Brendan Miller"
  date="2006-02-18T21:49:11"
  subject="osx caml bindings?">
</msg>
</thread>

<contents>
does anyone know if there are working caml cocoa bindings or caml
carbon bindings available? preferably cocoa bindings.

on a tangent, since objective-c has labeled arguments, it would be
cool if the binding recognized this and took a objective c method of
the form
doSomthingWith: (int)a and: (int)b and:(int)c

and turned it into the ocaml method
method doSomethingWith_and_and ~arg1 ~arg2 ~arg3

THEN a preprocessor could be used (I don't know much about caml4p,
hopefully it could do this) to regularly convert objective c style
calls in ocaml to the ocaml method call so that
[my_object doSomethingWith: a and: b and: c]

becomes
(my_object#doSomethingWith_and_and ~arg1:a ~arg2:b ~arg3: c)

the problem comes when you want to take advantage of the labeled
arguements to make a partial call. with the objective c syntax there
is ambiguity.

[my_object doSomethingWith: a]

could mean
(my_object#doSomethingWith_and_and ~arg1:a)

or it could mean
(my_object#doSomethingWith ~arg1:a)

and practically speaking cocoa has a lot of methods of that form... so
partial calls would maybe require that the ocaml call format is used.

</contents>

</message>

