[Ocaml-pxp-users] Problem with tree manipulation

Dario Teixeira darioteixeira at yahoo.com
Thu Aug 13 13:26:58 PDT 2009


Hi,

> Typing of objects is notoriously difficult, especially when there are
> optional arguments like for insert_nodes. Without checking this piece of
> code in detail, it can easily happen that a single type hint solves your
> problem, something like
> 
> (paragraph : _ Pxp_document.node)

Thanks for the hint -- it was indeed a problem solvable with an explicit
type annotation...

Best regards,
Dario Teixeira



      


More information about the Ocaml-pxp-users mailing list