<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/692002604f34e5a2f92c877c695585d4"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2003-01-28T22:20:09"
  subject="[Caml-list] printers and readers"
  prev="2003/01/0a508cc160a2b5e559d7a99c2276655d"
  next="2003/01/675a2919db92353047fba13e9e3c9dcf"
  prev-thread="2003/01/6c61d8e53888e8cfe3bf0947f25afdad"
  next-thread="2003/01/0e59bb16465a4d9e09f003f68f7ecdb5"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] printers and readers">
<msg 
  url="2003/01/692002604f34e5a2f92c877c695585d4"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2003-01-28T22:20:09"
  subject="[Caml-list] printers and readers">
</msg>
</thread>

<contents>
Hi

Is it possible to use Camlp4 (or anything else) to generate printers *and* 
readers for *all* types supported by O'Caml? [1] I guess what I'm looking for 
is a type-safe version of Lisp's "read", "print" and "write" that I won't 
have to write myself by hand for each class of types. Humanly-readable  ASCII 
text marshalling is another way to see it.

Ideally (i.e. with language support), I'd like to have a functorial interface 
for this: a module that generates printers and readers given a type.

Thanks
Oleg

[1] I've already looked at 
http://caml.inria.fr/camlp4/tutorial.new/tutorial007.html#toc51
-------------------
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

</contents>

</message>

