Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp5: bug?
[ 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] camlp5: bug?
Hi,

On Tue, Jan 22, 2008 at 11:05:41PM +0000, Dmitri Boulytchev wrote:

>     Given the file t.ml with the single line
>      () (let module X = Y in ())
>    camlp5 behaves as shown below:
>      camlp5o pr_o.cmo t.ml > /dev/null --- Failure: unable to print expr

This is indeed something missing in Camlp5. It will be fixed in next
release. In the meantime, you can edit the file "etc/pr_o.ml" and around
line 1100, change:
        <:expr< let $flag:_$ $list:_$ in $_$ >> |
        <:expr< match $_$ with [ $list:_$ ] >> |
into:
        <:expr< let $flag:_$ $list:_$ in $_$ >> |
        <:expr< let module $uid:_$ = $_$ in $_$ >> |
        <:expr< match $_$ with [ $list:_$ ] >> |

(i.e. insert the line with "let module" between the other two)

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/