From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,HTML_MESSAGE,MIME_HTML_ONLY autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 2BD2ABC6B for ; Mon, 21 Jan 2008 14:17:24 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAABsqlEc+KuYMfGdsb2JhbACCOjUpi1+BIwEBCQIIBwgKCQeaMQ X-IronPort-AV: E=Sophos;i="4.25,227,1199660400"; d="scan'208,217";a="21547178" Received: from smtp.ono.com (HELO resmaa05.ono.com) ([62.42.230.12]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Jan 2008 14:17:23 +0100 Received: from [159.23.98.243] (192.146.187.87) by resmaa05.ono.com (7.3.118.8) (authenticated as tmp123@menta.net) id 478B1703006D8B43 for caml-list@yquem.inria.fr; Mon, 21 Jan 2008 14:27:30 +0100 Message-ID: <47949B54.3020004@menta.net> Date: Mon, 21 Jan 2008 14:17:08 +0100 From: tmp123 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: caml-list Subject: Re: [Caml-list] ocamldoc, camlp4r and variant References: <47938B4B.60902@menta.net> <1200918520-sup-7748@ausone.inria.fr> In-Reply-To: <1200918520-sup-7748@ausone.inria.fr> Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocamldoc:01 camlp:01 ocamldoc:01 -pp:01 camlp:01 -html:01 foo:01 foo:01 compiler:01 syntax:01 preservation:98 wrote:01 caml-list:01 constructor:01 variant:02 Nicolas Pouillard wrote:
Excerpts from tmp123's message of Sun Jan 20 18:56:27 +0100 2008:
  
Hello,

Please, when the following small source is passed to ocamldoc (ocamldoc 
-pp camlp4r -html foo.ml), the comment "another type" is not asigned to 
type "bar", but joined to the comment of B constructor in type "foo".


    

The current pretty-printer is still buggy about comment preservation :/

  

Ooops, thats explains the subject. Thanks a lot for the reply.

Sometimes, I'm wondering if it is very illogic a language (aka compiler, aka syntax) whom handles comments not as text to strip at the firsts stages, but as statements that doesn't produces code.

Kind regards.