Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005838OCaml-for Camlp4 use https://github.com/ocaml/camlp4/issuespublic2012-11-30 18:032016-12-07 18:27
Reportermottl 
Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version4.00.1 
Target VersionFixed in Version 
Summary0005838: Camlp4 macro parser does not support binding structures
DescriptionIt would be awesome if the macro parser shipping with Camlp4 could support structures and not just expressions, e.g. maybe along these lines:

---
DEFINE Body =
  type foo = Arg.foo
  let bar = Arg.bar
;;

module Std_mod = struct
  module Arg = Std_arg
  Body
end

module Func (Arg : ARG) = struct
  Body
end
---

The above would essentially allow compile-time functor instantiations. Though it is possible to work around this with first-class modules, the resulting code for both definition and usage is quite clumsy and somewhat hard to get right for non-trivial cases.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0016777)
dim (developer)
2016-12-07 18:27

Camlp4 is now a separate project. Please re-open a ticket on github [1] if you are still interested in seeing the original issue fixed.

  [1] https://github.com/ocaml/camlp4/issues [^]

- Issue History
Date Modified Username Field Change
2012-11-30 18:03 mottl New Issue
2013-06-28 18:01 doligez Status new => acknowledged
2016-02-08 12:49 doligez Category Camlp4 => for Camlp4 use https://github.com/ocaml/camlp4/issues/102 [^]
2016-02-08 12:50 doligez Category for Camlp4 use https://github.com/ocaml/camlp4/issues/102 [^] => for Camlp4 use https://github.com/ocaml/camlp4/issues [^]
2016-12-07 18:27 dim Note Added: 0016777
2016-12-07 18:27 dim Status acknowledged => closed
2017-02-23 16:43 doligez Category for Camlp4 use https://github.com/ocaml/camlp4/issues [^] => -for Camlp4 use https://github.com/ocaml/camlp4/issues [^]


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker