OlivierNicole / ocaml

The core OCaml system: compilers, runtime system, base libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segfault with lazy

OlivierNicole opened this issue · comments

let x = 42

macro y = lazy <<x>>

let () = Printf.printf "%d\n" $(^Lazy.force y)

Fixed by bf07bb5: lazy should be disallowed as it is not really pure.