Browse thread
[Caml-list] Possible to use optional args in external (C) calls?
-
Richard Jones
- Eric C. Cooper
- Robert Roessler
[
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: | Eric C. Cooper <ecc@c...> |
| Subject: | Re: [Caml-list] Possible to use optional args in external (C) calls? |
On Sat, Oct 11, 2003 at 02:26:28PM +0100, Richard Jones wrote: > Is it possible to use optional or any labelled args in calls to C > code? I assume that optional args are passed as 'argtype option', > but what order do they appear to the C? The compiler accepts "external" declarations with labelled and optional parameters, and a little experimentation with "ocaml -dlambda" shows that the external function is called with the arguments in the order specified by the "external" declaration. -- Eric C. Cooper e c c @ c m u . e d u ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners