From: Judicael Courant <Judicael.Courant@lri.fr>
To: John Prevost <prevost@maya.com>
Cc: caml-list@inria.fr
Subject: Re: Camlp4's (lack of) hygiene (was Re: Macros)
Date: Mon, 10 Jul 2000 13:42:25 +0200 (MEST) [thread overview]
Message-ID: <200007101142.NAA02925@pc87.lri.fr> (raw)
In-Reply-To: <87r995jynp.fsf@isil.localdomain>
On 7 jui, John Prevost wrote:
> Somebody on clf pointed out the other bigger part of hygiene, which is
> allowing symbols which *are* bound in the "macro" source to be
> statically bound to that value when used. Unfortunately, I don't
> think this is a change that's at all simple for camlp4, since it
> requires very tight coupling with the compiler.
>
Notice that even O'Caml itself (I mean without camlp4) already has this
problem:
Objective Caml version 3.00+8 (2000-06-30)
# let x = [| 1 ; 2 |];;
val x : int array = [|1; 2|]
# module Array = struct end;;
module Array : sig end
# x.(1);; (* guess what happens... *)
Unbound value Array.get
# (* x.(1) just expands to Array.get x 1 *)
Judicaël.
--
Judicael.Courant@lri.fr, http://www.lri.fr/~jcourant/
(+33) (0)1 69 15 64 85
"Montre moi des morceaux de ton monde, et je te montrerai le mien"
Tim, matricule #929, condamné à mort.
http://rozenn.picard.free.fr/tim.html
next prev parent reply other threads:[~2000-07-16 21:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8js72h$11h$1@nnrp1.deja.com>
[not found] ` <Pine.LNX.4.21.0007041051140.20796-100000@punaluu.informatik.uni-freiburg.de>
[not found] ` <8juuep$420$1@news.planetinternet.be>
[not found] ` <u0lmzhyllz.fsf@hana.kurims.kyoto-u.ac.jp>
[not found] ` <8jv92l$qpb$1@bird.wu-wien.ac.at>
[not found] ` <u0wvj0datl.fsf@hana.kurims.kyoto-u.ac.jp>
2000-07-07 2:03 ` John Prevost
2000-07-07 23:42 ` John Prevost
2000-07-10 9:37 ` Daniel de Rauglaudre
2000-07-10 10:17 ` John Prevost
2000-07-10 11:42 ` Judicael Courant [this message]
2000-07-10 13:16 ` John Prevost
2000-07-17 10:08 ` Markus Mottl
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=200007101142.NAA02925@pc87.lri.fr \
--to=judicael.courant@lri.fr \
--cc=caml-list@inria.fr \
--cc=prevost@maya.com \
/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