Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camlp4 prints infinity #4767

Closed
vicuna opened this issue Apr 13, 2009 · 0 comments
Closed

Camlp4 prints infinity #4767

vicuna opened this issue Apr 13, 2009 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Apr 13, 2009

Original bug ID: 4767
Reporter: @Chris00
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Related to: #4345
Monitored by: @Chris00

Bug description

This may be linked to #320. When camlp4 prints infinite float values, it uses "inf" and "-inf" instead of the OCaml "infinity" and "neg_infinity".

Example in the toplevel:
#directory "+camlp4";;
#load "dynlink.cma";;
#load "camlp4of.cma";;
open Camlp4.PreCast

let printer =
let module P = Camlp4.Printers.OCaml.Make(Syntax)
in new P.printer ()

let print_expr e =
printer#expr Format.std_formatter e

print_expr <:expr@here< $`flo: 1. /. 0. $ >>;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant