caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Problem with the compiler 3.12.1
@ 2012-04-16 15:52 Claire Dross
  2012-04-18  9:04 ` Arnaud Spiwack
  2012-04-25  8:04 ` Claire Dross
  0 siblings, 2 replies; 4+ messages in thread
From: Claire Dross @ 2012-04-16 15:52 UTC (permalink / raw)
  To: caml-list

Hello,

I am new to caml-list, so sorry in advance if it is not the right place 
to make this post. In a quite important piece of ocaml code, I have a 
function:

let matching_term terms env uf id (pats, subst) (seen, forms) =
     match pats, subst with
       | _, [] | [], _ -> seen, forms
       | t :: pats, _ -> fprintf fmt "   %a@." T.print t;
         let acc = matchpats env terms uf (subst, seen, id+1) t in
         let acc, seen, _ = List.fold_left (matchpats env env.fils uf)
           acc pats in
         seen, List.rev_append acc forms

Removing the print in the second case of the match changes the result of 
the compiled file (compiler 3.12.1) on one of my tests. T.print does not 
have side effects, it recursively prints a hashconsed term structure.

Do you have any idea of what the problem is ?

Thanks a lot,

Claire Dross

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-27 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16 15:52 [Caml-list] Problem with the compiler 3.12.1 Claire Dross
2012-04-18  9:04 ` Arnaud Spiwack
2012-04-25  8:04 ` Claire Dross
2012-04-27 10:54   ` Claire Dross

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).