From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA07662; Thu, 18 Sep 2003 14:17:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA26245 for ; Thu, 18 Sep 2003 14:17:58 +0200 (MET DST) Received: from mailhost.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8ICHvj05328 for ; Thu, 18 Sep 2003 14:17:58 +0200 (MET DST) Received: from [140.77.128.185] (helo=igloo.is-a-geek.org) by mailhost.ens-lyon.fr with smtp (Exim 3.35 #1 (Debian)) id 19zxjL-0001fv-00; Thu, 18 Sep 2003 14:17:51 +0200 Date: Thu, 18 Sep 2003 14:08:29 +0200 From: David Baelde To: Michael Wohlwend , caml-list@inria.fr Subject: Re: [Caml-list] c-interface question... Message-Id: <20030918140829.4322bd92.David.Baelde@ens-lyon.fr> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.?.Wo7GIBb6.D6t" X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 caml-list:01 c-interface:01 curses:01 initscr:01 camlparam:01 camlreturn:01 initscr:01 camlprim:01 camlreturn:01 val:01 unit:03 unit:03 tutorial:05 i'm:07 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --=.?.Wo7GIBb6.D6t Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm not an expert, but I can quote the tutorial. Here is their code for a unit -> window bound function. value curses_initscr(value unit) { CAMLparam1 (unit); CAMLreturn ((value) initscr());=20 } That's why I use CAMLprim f (value unit) { CAMLreturn(Val_unit) } -- David Baelde Etudiant en Info =E0 l'ENS Lyon _______ .^. O /V\ .=B0 // \\ /( )\ ^^-^^ --=.?.Wo7GIBb6.D6t Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/aaA+wd3I+DcVnIIRAi6jAJ9TFIeZ9FxhSn093ffAEt2qnGYDLgCgj8oO UbyxKFvdXTeYmybi5fNBSBM= =zshz -----END PGP SIGNATURE----- --=.?.Wo7GIBb6.D6t-- ------------------- 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