You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4928 Reporter:@ygrek Assigned to:@xclerc Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z) Resolution: fixed Priority: normal Severity: major Version: 3.11.1 Fixed in version: 3.12.1+dev Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues Monitored by: hnrgrgr zack
Bug description
Printers.OCaml.print_implem adds ;; after each method specification. This is not a valid OCaml syntax.
-pp camlp4o accepts such syntax. Probably this is another bug.
Additional information
$ cat q.ml
open Camlp4.PreCast
let _loc = Loc.mk ""
let make s = <:str_item< class $lid:s$ = object method name = $str:s$ end >>
let () = Printers.OCaml.print_implem (make "hello")
$ ocaml dynlink.cma camlp4of.cma -init q.ml
Objective Caml version 3.11.1
Camlp4 Parsing version 3.11.1
class hello = object method name = "hello";; end;;
Original bug ID: 4928
Reporter: @ygrek
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.11.1
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: hnrgrgr zack
Bug description
Printers.OCaml.print_implem adds ;; after each method specification. This is not a valid OCaml syntax.
-pp camlp4o
accepts such syntax. Probably this is another bug.Additional information
$ cat q.ml$lid:s$ = object method name = $str:s$ end >>
open Camlp4.PreCast
let _loc = Loc.mk ""
let make s = <:str_item< class
let () = Printers.OCaml.print_implem (make "hello")
$ ocaml dynlink.cma camlp4of.cma -init q.ml
Objective Caml version 3.11.1
class hello = object method name = "hello";; end;;
File attachments
The text was updated successfully, but these errors were encountered: