caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeff Henrikson <jehenrik@yahoo.com>
To: caml-list@inria.fr
Subject: [Caml-list] toplevel printing of polymorphic values
Date: Sat, 28 Aug 2004 18:26:55 -0700	[thread overview]
Message-ID: <20040829012654.GA3011@respighi.local.> (raw)


-- 
Hello,

I have written a double ended queue and I would like to install a pretty printer in the toplevel.  Just being able to print an 'a Dequeue.t like an 'a list would be fine.

I understand how to use the Format module to get the box, print the delimeters, etc.  The part I don't understand is how to get back to the generic 'a printer.  I cannot see any polypmorphic methods in all of the Format module.  What I want to access seems to be implemented in:

ocaml_source/toplevel/genprintval.ml:

    (* The main printing function *)

    let outval_of_value max_steps max_depth check_depth env obj ty =

Though if it is exposed, I'm sure it is in some other form.  Is what I'm trying to do possible?


Jeff Henrikson

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2004-08-29  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-29  1:26 Jeff Henrikson [this message]
2004-08-30 18:35 ` Francisco Valverde

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=20040829012654.GA3011@respighi.local. \
    --to=jehenrik@yahoo.com \
    --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).