From: DooMeeR <d@doomeer.com>
To: Robert Fischer <robert@fischerventure.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Question about type unification
Date: Mon, 26 May 2008 21:38:13 +0200 [thread overview]
Message-ID: <483B11A5.5030209@doomeer.com> (raw)
In-Reply-To: <483B0F81.1020907@fischerventure.com>
Robert Fischer a écrit :
> How is the compiler magically getting from the float to a string value? Can someone break down
> what's actually happening here for me?
It's not "getting to" a "string" value but to a "string t" value, which
is an abbreviation for "float". The value has type "float", but the user
requires type "string t", so the compiler unifies "float" and "string t"
which is actually "float" so it's ok, and then the compiler gives the
type requested by the user to the value, i.e., "string t".
Well, at least, this is how I understand this :)
--
Romain Bardou
next prev parent reply other threads:[~2008-05-26 19:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 12:22 Richard Jones
2008-05-26 12:33 ` [Caml-list] " Jon Harrop
2008-05-26 12:37 ` Romain Bardou
2008-05-26 17:21 ` Fabrice Marchant
2008-05-26 19:29 ` Robert Fischer
2008-05-26 19:38 ` DooMeeR [this message]
2008-05-26 19:43 ` Robert Fischer
2008-05-26 19:45 ` Jeremy Yallop
2008-05-26 21:44 ` Richard Jones
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=483B11A5.5030209@doomeer.com \
--to=d@doomeer.com \
--cc=caml-list@inria.fr \
--cc=robert@fischerventure.com \
/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