From: Jim <jim@farrand.net>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Print values like the toplevel's printer
Date: Sat, 6 Nov 2004 11:15:23 +0000 [thread overview]
Message-ID: <20041106111523.GB24365@draco.skynet> (raw)
In-Reply-To: <200411051323.13339.wolfgang.mueller2@uni-bayreuth.de>
On Fri, Nov 05, 2004 at 01:23:13PM +0100, Wolfgang Müller wrote:
> I would like to print values to a file in a human-readable manner without
> having to compose the output writers of print_int and friends. In short, I
> would like to use the toplevel's function for screen output of structured
> values.
>
> Is there a simple way, a FM or a mailing list you can point me to?
>
> I googled quite a bit, but apparently not with the right terms.
Aside from clever uses of various bits of the top level, you can also
use camlp4 to automatically generate print functions for types. I think
there is an example in the camlp4 manual.
What we really need is generics. I thought there was a post in the
mailing list some time ago saying that generics was going to be
appear in O'Caml at some point, but I haven't seen anything for a long
time. Does anyone know if it is still planned?
Regards,
Jim
next prev parent reply other threads:[~2004-11-06 11:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-05 12:23 Wolfgang Müller
2004-11-05 13:31 ` [Caml-list] " padiolea
2004-11-05 13:54 ` Wolfgang Müller
2004-11-05 15:51 ` pad
2004-11-05 18:07 ` [Too hard?] Print values like the toplevel's printerI Wolfgang Müller
2004-11-05 18:28 ` [Caml-list] " pad
2004-11-05 18:54 ` Martin Jambon
2004-11-05 19:26 ` Frédéric Gava
2004-11-05 20:01 ` [Caml-list] [Too hard?] Print values like the toplevel's printer Wolfgang Müller
2004-11-06 11:15 ` Jim [this message]
2004-11-08 23:44 ` [Caml-list] " brogoff
2004-11-09 8:48 ` Daniel Bünzli
2004-11-05 22:12 Clément Capel
2004-11-05 23:15 Clément Capel
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=20041106111523.GB24365@draco.skynet \
--to=jim@farrand.net \
--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