From: STARYNKEVITCH Basile <Basile.Starynkevitch@cea.fr>
To: <caml-list@inria.fr>
Subject: [Caml-list] tiny syntactic convenience suggestion
Date: Wed, 5 Dec 2001 09:56:33 +0100 [thread overview]
Message-ID: <15373.57665.820067.722842@gargle.gargle.HOWL> (raw)
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
reply other threads:[~2001-12-05 8:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15373.57665.820067.722842@gargle.gargle.HOWL \
--to=basile.starynkevitch@cea.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox