Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004346OCamlCamlp4public2007-07-18 02:552013-12-24 09:48
Reporterjm 
Assigned Todim 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionreopened 
PlatformOSOS Version
Product Version3.10+dev 
Target Version4.01.1+devFixed in Version 
Summary0004346: Camlp4 messes up comments within and after records.
Description$ cat tst.ml
(** comment of t *)
type t =
  {
    mutable a : int; (** a *)
    mutable b : int; (** b *)
    mutable c : int; (** c *)
    mutable d : int; (** d *)
    mutable e : int; (** e *)
  }
(** after *)
$ camlp4o tst.ml
(** comment of t *)
type t =
  { (** a *) (** b *) (** c *) mutable a : int; mutable b : int;
    mutable c : int; mutable d : int; (** d *) mutable e : int
  }

cat tst_bis.ml
(** comment of t *)
type t =
  {
    mutable a : int; (** a *)
    mutable b : int; (** b *)
    mutable c : int; (** c *)
    mutable d : int; (** d *)
    mutable e : int; (** e *)
  }
(** after *)
()
$ camlp4o tst_bis.ml
(** comment of t *)
type t =
  { (** a *) (** b *) (** c *) mutable a : int; mutable b : int;
    mutable c : int; mutable d : int; (** d *) mutable e : int
  }
(** e *)
(** after *)
let _ = ()
Additional InformationThis becomes extremely annoying when the output is intended to be used by ocamldoc.
TagsNo tags attached.
Attached Files

- Relationships
related to 0004713closeddim Camlp4o messes with comments 
related to 0004545feedbackhongboz Camlp4 preprocessing messes up the documentation. 

-  Notes
(0004105)
ertai (developer)
2007-07-18 14:45

Dealing with comments while making structured program manipulation is still an open problem. I will try to improve it but not in the mean time.
(0010759)
ygrek (reporter)
2013-12-22 04:28

forwarded to https://github.com/ocaml/camlp4/issues/6 [^]

- Issue History
Date Modified Username Field Change
2007-07-18 02:55 jm New Issue
2007-07-18 14:45 ertai Note Added: 0004105
2007-07-18 14:45 ertai Assigned To => ertai
2007-07-18 14:45 ertai Priority normal => low
2007-07-18 14:45 ertai Status new => acknowledged
2012-07-11 16:06 doligez Relationship added related to 0004713
2012-07-11 16:06 doligez Relationship added related to 0004545
2012-07-11 16:06 doligez Target Version => 4.01.0+dev
2012-07-12 11:27 doligez Assigned To ertai =>
2012-07-31 13:37 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-15 00:05 doligez Target Version 4.00.1+dev => 4.01.0+dev
2013-08-02 14:42 doligez Target Version 4.01.0+dev => 4.01.1+dev
2013-12-22 04:28 ygrek Note Added: 0010759
2013-12-24 09:48 dim Status acknowledged => closed
2013-12-24 09:48 dim Assigned To => dim
2013-12-24 09:48 dim Resolution open => reopened


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker