From: "Brendan Miller" <catphive.lists@gmail.com>
To: caml-list@inria.fr
Subject: osx caml bindings?
Date: Sat, 18 Feb 2006 13:49:09 -0800 [thread overview]
Message-ID: <3dd983220602181349x6d61a072obf677b0c923da8cb@mail.gmail.com> (raw)
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.
reply other threads:[~2006-02-18 21:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dd983220602181349x6d61a072obf677b0c923da8cb@mail.gmail.com \
--to=catphive.lists@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).