From: Dario Teixeira <darioteixeira@yahoo.com>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Merging object signatures
Date: Fri, 5 Nov 2010 05:58:53 -0700 (PDT) [thread overview]
Message-ID: <482197.73063.qm@web111512.mail.gq1.yahoo.com> (raw)
In-Reply-To: <87k4ksdfiq.fsf@frosties.localdomain>
Hi,
> Can't you make foo_t and bar_t class types and foobar_t inherits them
> both?
Thanks for the reply. Yes, in the toy example I posted that would indeed
be an alternative. Still, I'm wondering about the most general case;
suppose I had a function that took an object satisfying both foo_t and bar_t:
val do_something: < foo_t; bar_t; .. > -> bool
This is what I'm wondering if it's possible to express.
Best regards,
Dario Teixeira
next prev parent reply other threads:[~2010-11-05 12:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-04 18:55 Dario Teixeira
2010-11-04 20:01 ` [Caml-list] " Goswin von Brederlow
2010-11-05 12:58 ` Dario Teixeira [this message]
2010-11-05 14:45 ` Jacques Garrigue
2010-11-05 17:58 ` Dario Teixeira
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=482197.73063.qm@web111512.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=caml-list@yquem.inria.fr \
--cc=goswin-v-b@web.de \
/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).