From: Edgar Friendly <thelema314@gmail.com>
To: peng.zang@gmail.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] specifying the type of an argument with more than one #classpath
Date: Wed, 05 Mar 2008 19:56:39 -0600 [thread overview]
Message-ID: <47CF4F57.3060309@gmail.com> (raw)
In-Reply-To: <200803052052.10651.peng.zang@gmail.com>
Peng Zang wrote:
> Is there some simple trick people have found for specifying various type
> constraints on arguments?
How about something like:
let takesomefooable_and_barable x =
ignore(lazy(x#foo));
ignore(lazy(x#bar));
x
E
next prev parent reply other threads:[~2008-03-06 1:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 1:52 Peng Zang
2008-03-06 1:56 ` Edgar Friendly [this message]
2008-03-06 2:04 ` [Caml-list] " Peng Zang
2008-03-06 2:16 ` Eric Cooper
2008-03-06 12:02 ` Peng Zang
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=47CF4F57.3060309@gmail.com \
--to=thelema314@gmail.com \
--cc=caml-list@inria.fr \
--cc=peng.zang@gmail.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