From: Jean-Marie Favre <Jean-Marie.Favre@imag.fr>
To: caml-list@inria.fr
Subject: polymorphic printer functions ?
Date: Sat, 23 May 1998 18:32:06 +0200 [thread overview]
Message-ID: <3566FA06.8BADB25D@imag.fr> (raw)
Hello everybody ...
I'd like to know how to implement polymorphic printer functions.
(I use ocaml 1.07)
I'm writing a library implementing a large subset of the Z library operators
(operations on sets, relations, functions, and so on) and i would like
to be able to install printer functions for printing 'a set, ('a,'b) relations,
etc., (using #install_printer). set, relations being abstract types
constructors.
Writing a polymorphic printer for such structures means to be able to call a
function printing each element.
Is there any function like
print_value : 'a -> unit
available when using the top level ?
Jean-marie
reply other threads:[~1998-05-23 22:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3566FA06.8BADB25D@imag.fr \
--to=jean-marie.favre@imag.fr \
--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;
as well as URLs for NNTP newsgroup(s).