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 VAA11959; Sun, 3 Mar 2002 21:09:49 +0100 (MET) 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 VAA00571 for ; Sun, 3 Mar 2002 21:09:48 +0100 (MET) Received: from relay-2v.club-internet.fr (relay-2v.club-internet.fr [194.158.96.113]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g23K9hb29433 for ; Sun, 3 Mar 2002 21:09:44 +0100 (MET) Received: from warp (lns05v-10-235.w.club-internet.fr [212.194.93.235]) by relay-2v.club-internet.fr (Postfix) with SMTP id DBD151700 for ; Sun, 3 Mar 2002 21:09:23 +0100 (CET) Message-ID: <000001c1c2ef$06d74cb0$7000a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] External typing Date: Sun, 3 Mar 2002 19:15:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi I have something like : external f1 : my_very_long_indentifier -> one_other_id -> int = "f1" external f2 : my_very_long_indentifier -> one_other_id -> bool = "f2" .... And I would like to have : type 'a conv = my_very_long_indentifier -> one_other_id -> 'a external f1 : int conv = "f1" external f2 : bool conv = "f2" Which is - you'll agree - a lot nicer. But the computer yield to me "External identifiers must be functions" when I try this. Is that notation really impossible with externals or is there some tip ? Does the compiler shouldn't know that "int conv" is a functional type ? Thanks Nicolas Cannasse ------------------- 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