From: Dave Mason <dmason@sarg.Ryerson.CA>
To: caml-list@inria.fr
Subject: irritability of structure name conflicts
Date: Tue, 13 Jul 1999 13:59:44 -0400 [thread overview]
Message-ID: <199907131759.NAA00710@sarg.Ryerson.CA> (raw)
In-Reply-To: Your message of "Mon, 12 Jul 1999 19:20:36 +0200." <378A23E4.ECEDD6DB@ps.uni-sb.de>
I have the following as part of a type declaration:
and variable = {name:scheme; mutable value:scheme; next:variable}
and field = {fname:scheme;
fclass:scheme;
finit:scheme option;
fnext:field}
and clause = {tags:scheme list;code:scheme list}
and binding = {id:int;mutable set:bool;value:scheme}
all of which compiles fine, but I get the error:
The label value belongs to the type Types.binding
but is here mixed with labels of type Types.variable
at a line that says, in part:
{name=sym;value=r;next=symbol_table.(idx)}
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!
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?
Thanks ../Dave
next prev parent reply other threads:[~1999-07-13 19:22 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 ` Dave Mason [this message]
1999-07-14 3:04 ` irritability of structure name conflicts John Skaller
1999-07-14 15:43 ` Xavier Leroy
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=199907131759.NAA00710@sarg.Ryerson.CA \
--to=dmason@sarg.ryerson.ca \
--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