From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Dave Mason <dmason@sarg.Ryerson.CA>, caml-list@inria.fr
Subject: Re: irritability of structure name conflicts
Date: Wed, 14 Jul 1999 17:43:03 +0200 [thread overview]
Message-ID: <19990714174303.17280@pauillac.inria.fr> (raw)
In-Reply-To: <199907131759.NAA00710@sarg.Ryerson.CA>; from Dave Mason on Tue, Jul 13, 1999 at 01:59:44PM -0400
> I didn't get the error before I added the field type! I'm (a)
> confused, and (b) irritated that I have to keep making up names for
> labels!
I agree it's an unpleasant feature of Caml, caused by the way we do
type inference on record accesses. E.g. if a label "lbl" could belong
to two named record types t1 and t2, "fun x -> x.lbl" would have
two types "t1 -> ..." and "t2 -> ..."
> Is there some way I can force it to interpret the type constructor as
> a particular type so that it chooses the labels from the correct set?
Currently no, but we discussed several possible approaches on this
list a while ago. If you're interested, you can search the archives
at http://caml.inria.fr/. (The subject line was "CamlIDL - stub code
generator and COM binding for OCaml".)
Best,
- Xavier Leroy
next prev parent reply other threads:[~1999-07-14 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-12 17:20 Undecidability of OCaml type checking Andreas Rossberg
1999-07-13 17:59 ` irritability of structure name conflicts Dave Mason
1999-07-14 3:04 ` John Skaller
1999-07-14 15:43 ` Xavier Leroy [this message]
1999-07-14 15:32 ` Undecidability of OCaml type checking Xavier Leroy
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=19990714174303.17280@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=dmason@sarg.Ryerson.CA \
/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