Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Does this function exist?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Does this function exist?

Chris Hecker <> writes:
> type foo = A of int | B of int list
> Then have camlp4 generate
> let print_foo fmt f =
> [...]
> Is this something camlp4 can do?

Camlp4 can do that, indeed, the way ioXML does, like Remi Vanicat says.
With changes in ioXML, you can generate printing functions you want,
for each type.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: