From: Chris Hecker <checker@d6.com>
To: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>, caml-list@inria.fr
Subject: Re: status of some big "important" features?
Date: Sat, 30 Dec 2000 11:30:57 -0800 [thread overview]
Message-ID: <4.3.2.7.2.20001230112049.00ba2b60@shell16.ba.best.com> (raw)
In-Reply-To: <20001228101047.A27850@verdot.inria.fr>
>> PS. Minor question I thought of the other day...is there any way to
>> write "nth" for tuples (as opposed to "fst", which is hard-coded to
>> 2-tuples)?
>Impossible in Camlp4, it is a typing problem.
Oh, I thought camlp4 had the types available to it. I must have misunderstood the docs.
Hmm. So similarly, you couldn't write an introspection thing like this in camlp4:
type foo = {bar:float; baz:int };;
let a = {bar = 1.;baz = 1};;
print_members_camlp4 a;;
Where print_members_camlp4 is hooked by camlp4 to iterate over the members of whatever record was passed to it (or error at compile time if it's not a record)? That's not possible?
Chris
next prev parent reply other threads:[~2000-12-30 21:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-26 23:47 Chris Hecker
2000-12-28 9:10 ` Daniel de Rauglaudre
2000-12-30 19:30 ` Chris Hecker [this message]
2000-12-30 20:53 ` Daniel de Rauglaudre
2000-12-31 1:58 ` Chris Hecker
2000-12-31 3:08 ` Daniel de Rauglaudre
2001-01-02 17:39 ` William Chesters
2000-12-31 20:39 ` John Max Skaller
2000-12-28 20:19 ` A proposal for overloading Christophe Raffalli
2001-01-02 10:38 ` Didier Remy
2001-01-02 19:08 ` Christophe Raffalli
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=4.3.2.7.2.20001230112049.00ba2b60@shell16.ba.best.com \
--to=checker@d6.com \
--cc=caml-list@inria.fr \
--cc=daniel.de_rauglaudre@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;
as well as URLs for NNTP newsgroup(s).