From: David Allsopp <dra-news@metastack.com>
To: Dario Teixeira <darioteixeira@yahoo.com>,
O Camlmailinglist <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] References and polymorphism
Date: Tue, 10 Jan 2012 17:20:57 +0000 [thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9C26218B6@Remus.metastack.local> (raw)
In-Reply-To: <1326214824.62249.YahooMailNeo@web111507.mail.gq1.yahoo.com>
Dario Teixeira wrote:
> Thank you, Romain and Arnaud. With that "list ref" example in mind, it
> does make sense for the compiler to play it safe and declare foobar2 to
> be non-polymorphic. Moreover, this is one of those issues where I I
> suspect that compiler elfs must have pondered already how easy/feasible
> it would be to extend the compiler to detect sound instances (such as
> foobar2) that could be accepted...
They certainly did: http://mlton.org/ValueRestriction has links to the various papers on the subject (the present scheme was not the first solution for SML, as it notes).
David
next prev parent reply other threads:[~2012-01-10 17:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 15:29 Dario Teixeira
2012-01-10 15:45 ` Romain Bardou
2012-01-10 16:31 ` Arnaud Spiwack
2012-01-10 17:00 ` Dario Teixeira
2012-01-10 17:20 ` David Allsopp [this message]
2012-01-10 18:59 ` Gabriel Scherer
2012-01-11 10:48 ` [Caml-list] " Dawid Toton
2012-01-11 11:07 ` Gabriel Scherer
2012-01-11 13:00 ` Dawid Toton
2012-01-11 13:15 ` rossberg
2012-01-11 13:56 ` Dawid Toton
2012-01-11 15:42 ` rossberg
2012-01-12 9:55 ` Dawid Toton
2012-01-12 10:05 ` Andrej Bauer
2012-01-12 10:46 ` Romain Bardou
2012-01-11 11:43 ` rossberg
2012-01-11 13:34 ` Dawid Toton
2012-01-11 15:34 ` rossberg
2012-01-11 13:57 ` Dawid Toton
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=E51C5B015DBD1348A1D85763337FB6D9C26218B6@Remus.metastack.local \
--to=dra-news@metastack.com \
--cc=caml-list@yquem.inria.fr \
--cc=darioteixeira@yahoo.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