From: Frederic Tronel <Frederic.Tronel@inrialpes.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Probleme avec des enregistrements
Date: Fri, 11 Jan 2002 14:00:50 +0100 [thread overview]
Message-ID: <3C3EE202.8C306B0B@inrialpes.fr> (raw)
Bonjour,
J'utilise la version 3.04 de caml.
Je veux utiliser des enregistrements dont certains
des champs portent le meme nom. Cela ne fonctionne pas.
Ainsi:
<cime:479> ./ocaml
Objective Caml version 3.04
# type t1={a:int ; b:int} ;;
type t1 = { a : int; b : int; }
# type t2 = {a:int} ;;
type t2 = { a : int; }
# {a=2} ;;
- : t2 = {a = 2}
# {a=1;b=2} ;;
The record field label b belongs to the type t1
but is here mixed with labels of type t2
#
Il n'y a pourtant aucune ambiguite sur le type de
{a=1;b=2} !
Est-ce un bug connu ?
Frederic Tronel.
-------------------
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
next reply other threads:[~2002-01-11 18:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-11 13:00 Frederic Tronel [this message]
2002-01-11 19:41 ` Remi VANICAT
2002-01-12 7:16 ` Bruno Pagano
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=3C3EE202.8C306B0B@inrialpes.fr \
--to=frederic.tronel@inrialpes.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