Version française
Home     About     Download     Resources     Contact us    
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?
Hi,

Chris Hecker <checkerOd6.com> 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.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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