Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml <-> C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paul Argentoff <argentoff@r...>
Subject: Ocaml <-> C
Hello world!

Let's say we have a function:

external f : t option -> unit = "c_f"

How can I make analysis depending on the parameter, which in Ocaml is:

match a with
  | None -> chunk1
  | Some x -> chunk2 x

What functions/macros from a standard ocaml includes set can I use?

-- 
Yours truly, WBR, Paul Argentoff.
Jabber:	paul@jabber.rtelekom.ru
RIPE:	PA1291-RIPE