Browse thread
[Caml-list] create a closure in external C function?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | qrczak@k... |
| Subject: | Re: [Caml-list] create a closure in external C function? |
Tue, 06 Mar 2001 16:44:06 -0800, Chris Hecker <checker@d6.com> pisze:
> > Especially if you statically know types of arguments,
> > which is the case I am talking about.
>
> Which case are you talking about? Are you working on this as well?
Not quite. But if I ever write an OCaml binding to a C library,
I might need it; and other people might similarly need it.
It's a concrete functionality which is missing from OCaml but
makes sense. I use its equivalent in Haskell to wrap C libraries
which use callbacks in Haskell's higher order functions.
> Are you just talking about wanting to expose qsort and other
> functions that take callbacks?
Yes.
--
__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr