caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Probleme avec des enregistrements
@ 2002-01-11 13:00 Frederic Tronel
  2002-01-11 19:41 ` Remi VANICAT
  2002-01-12  7:16 ` Bruno Pagano
  0 siblings, 2 replies; 3+ messages in thread
From: Frederic Tronel @ 2002-01-11 13:00 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-14 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11 13:00 [Caml-list] Probleme avec des enregistrements Frederic Tronel
2002-01-11 19:41 ` Remi VANICAT
2002-01-12  7:16 ` Bruno Pagano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).