caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andreas Rossberg <rossberg@ps.uni-sb.de>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Records misbehaviour
Date: Wed, 14 Sep 2005 10:48:58 +0200	[thread overview]
Message-ID: <4327E3FA.7010002@ps.uni-sb.de> (raw)
In-Reply-To: <4a708d205091316156a6e5108@mail.gmail.com>

Lukasz Stafiniak wrote:
> While I haven't encounter this in my programming, it popped out in
> another thread and I think something might be done about it:
> 
> #type t1 = {fst:int;snd:int};; 
> #let p1 = {fst=1; snd=2};; 
> #type t2 = {snd:int};; 
> #{p1 with snd=4};; 
> - : t2 = {snd = 4};; 

I guess this is just an instance of the following:

# type t = {a:int};;
type t = { a : int; }
# {"hi" with a=5};;
- : t = {a = 5}

-- 
Andreas Rossberg, rossberg@ps.uni-sb.de

Let's get rid of those possible thingies!  -- TB


      parent reply	other threads:[~2005-09-14  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-13 23:15 Lukasz Stafiniak
2005-09-14  0:03 ` [Caml-list] " Jacques Garrigue
2005-09-14  8:48 ` Andreas Rossberg [this message]

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=4327E3FA.7010002@ps.uni-sb.de \
    --to=rossberg@ps.uni-sb.de \
    --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;
as well as URLs for NNTP newsgroup(s).