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 KAA31380; Fri, 12 Sep 2003 10:47:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA21681 for ; Fri, 12 Sep 2003 10:47:28 +0200 (MET DST) Received: from mailhost.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8C8lRT29770 for ; Fri, 12 Sep 2003 10:47:27 +0200 (MET DST) Received: from [140.77.128.37] (helo=igloo.is-a-geek.org) by mailhost.ens-lyon.fr with smtp (Exim 3.35 #1 (Debian)) id 19xjaR-00017d-00 for ; Fri, 12 Sep 2003 10:47:27 +0200 Date: Fri, 12 Sep 2003 10:38:26 +0200 From: David Baelde To: caml-list@inria.fr Subject: Re: [Caml-list] Interface C Message-Id: <20030912103826.1db1074d.David.Baelde@ens-lyon.fr> In-Reply-To: <16225.33745.45477.324037@karryall.dnsalias.org> References: <20030912095310.1df6fc70.David.Baelde@ens-lyon.fr> <16225.33745.45477.324037@karryall.dnsalias.org> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 caml-list:01 callback:01 callback:01 enregistre:99 camlprim:01 destinees:99 caml:01 caml:01 closure:01 probleme:02 interface:03 puisque:06 root:07 root:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Second jeu de questions, puisque j'ai un expert sous la main : (merci pour les r=E9ponses aux premi=E8res questions, =E7a marche mieux) *** if (auth_callback_caml) remove_global_root (&auth_callback_caml) ; register_global_root (&auth_callback_caml) ; // a chaque fois ? auth_callback_caml =3D fn ; *** Dans le manuel, il est dit que register doit etre appel=E9e la premi=E8re fois. Il m'a quand meme sembl=E9 plus naturel de dire au GC que je lache la vieille closure, puis que j'en enregistre une nouvelle. Ya-t-il un probl=E8me avec ce code ? Les CAMLprim sont les fonctions destin=E9es =E0 etre appel=E9es en caml, ou bien les fonctions qui utilisent des value ? Merci encore. -- David ------------------- 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