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 JAA03880; Wed, 5 Dec 2001 09:56:16 +0100 (MET) 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 JAA03844 for ; Wed, 5 Dec 2001 09:56:16 +0100 (MET) Received: from nenuphar.saclay.cea.fr (nenuphar.saclay.cea.fr [132.166.192.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id fB58uF902219 for ; Wed, 5 Dec 2001 09:56:15 +0100 (MET) Received: from muguet.saclay.cea.fr (muguet.saclay.cea.fr [132.166.192.6]) by nenuphar.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.0.D20+Y2K) with ESMTP id JAA16164 for ; Wed, 5 Dec 2001 09:56:43 +0100 (MET) Received: from harpie.saclay.cea.fr (harpie.saclay.cea.fr [132.166.133.152]) by muguet.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.2.D20+Y2K) with ESMTP id JAA16727; Wed, 5 Dec 2001 09:56:14 +0100 (MET) Received: by harpie.saclay.cea.fr (8.8.8+Sun/CEANET.2.0.1) id JAA06080; Wed, 5 Dec 2001 09:56:33 +0100 (MET) From: STARYNKEVITCH Basile MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15373.57665.820067.722842@gargle.gargle.HOWL> Date: Wed, 5 Dec 2001 09:56:33 +0100 To: Subject: [Caml-list] tiny syntactic convenience suggestion X-Mailer: VM 6.76 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello All, For top level bindings to be used by C code I suggest a syntactic sugar: let external "fooname" foo = bigexpr;; would be equivalent to let foo = bigexpr; Callback.register "fooname" foo;; Perhaps even we could have let external foo = bigexpr;; equivalent to let external "foo" foo = bigexpr;; I know that this is not perfectly orthogonal (e.g. w.r.t. Ocaml module system) but I believe it would be a useful feature for novice users using Ocaml as a scripting langage embedded in an existing application N.B. Any opinions expressed here are only mine, and not of my organization. N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA. --------------------------------------------------------------------- Basile STARYNKEVITCH ---- Commissariat à l Energie Atomique * France DRT/LIST/DTSI/SLA * CEA/Saclay b.528 (p111f) * 91191 GIF/YVETTE CEDEX phone:+33 1,6908.6055; fax: 1,6908.8395 home: 1,4665.4553; mobile: 6,8501.2359 work email: Basile point Starynkevitch at cea point fr home email: Basile at Starynkevitch point net ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr