3

In the past, Julien Signoles programmed ocamldefun, a program that took OCaml source code with functors and obtained an equivalent program without functors. This is useful for optimization, analysis and other purposes.

It seems that ocamldefun is no longer maintained. Does there exist some equivalent tool?

4

1 回答 1

4

Markus Mottl 展示了一个 camlp4 技巧来进行编译时仿函数实例化(有一些限制)。看看这里

于 2013-04-05T19:20:27.140 回答