From: Issac Trotts <ijtrotts@ucdavis.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] examples of heterogenous collections (containers ?)
Date: Wed, 31 Mar 2004 21:38:50 -0800 [thread overview]
Message-ID: <20040401053850.GA2260@mev> (raw)
In-Reply-To: <16491.37831.445677.611426@soggy.deldotd.com>
On Wed, Mar 31, 2004 at 08:00:07PM -0800, briand@aracnet.com wrote:
> let the_list = [ new elt; new elt ; ((new elt_A) :> elt) ]
I wish I understood why this cast is necessary. It seems like OCaml
should be able to construct a class type whose method signatures
are the ones common to all objects in the list.
--
Issac Trotts
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-04-01 12:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 4:55 briand
2004-03-31 5:41 ` Matt Gushee
2004-03-31 6:45 ` briand
2004-03-31 9:04 ` skaller
2004-04-01 4:00 ` briand
2004-04-01 5:38 ` Issac Trotts [this message]
2004-04-01 7:20 ` skaller
2004-03-31 7:28 ` Martin Jambon
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=20040401053850.GA2260@mev \
--to=ijtrotts@ucdavis.edu \
--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