caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yoann Padioleau <Yoann.Padioleau@emn.fr>
To: "Denis Bueno" <dbueno@gmail.com>
Cc: "Martin Jambon" <martin1977@laposte.net>,
	OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Record field update using 'with' syntax
Date: Mon, 18 Sep 2006 23:16:51 +0200	[thread overview]
Message-ID: <87k640ooxo.fsf@wanadoo.fr> (raw)
In-Reply-To: <6dbd4d000609181400m4fed986csad9f39a4c2c7f97@mail.gmail.com> (Denis Bueno's message of "Mon, 18 Sep 2006 17:00:04 -0400")

"Denis Bueno" <dbueno@gmail.com> writes:

> On 9/18/06, Martin Jambon <martin1977@laposte.net> wrote:
>> On Mon, 18 Sep 2006, Denis Bueno wrote:
>> > Why doesn't the following work in a function?
>> >
>> >     {M1.instance with x = 20}
>>        ^^^^^^^^^^^
>>        this is an arbitrary expression, it doesn't have to come from the
>>        module where the record type is defined, so you need to specify it
>>        too.

Still, the machine could infer this information. Do we not all 
like type inference ? Why not extend it to this problem ? 


>>
>
> Makes sense. Thanks.
>
> -Denis
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


      reply	other threads:[~2006-09-18 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-18 20:22 Denis Bueno
2006-09-18 20:58 ` [Caml-list] " Martin Jambon
2006-09-18 21:00   ` Denis Bueno
2006-09-18 21:16     ` Yoann Padioleau [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=87k640ooxo.fsf@wanadoo.fr \
    --to=yoann.padioleau@emn.fr \
    --cc=caml-list@inria.fr \
    --cc=dbueno@gmail.com \
    --cc=martin1977@laposte.net \
    /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).