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

Incomplete information in Section 7.2 of the Reference Manual #5496

Closed
vicuna opened this issue Jan 30, 2012 · 1 comment
Closed

Incomplete information in Section 7.2 of the Reference Manual #5496

vicuna opened this issue Jan 30, 2012 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jan 30, 2012

Original bug ID: 5496
Reporter: kosik
Assigned to: @protz
Status: closed (set by @xavierleroy on 2013-08-31T10:46:21Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 3.12.1
Category: documentation
Has duplicate: #4833
Related to: #5261

Bug description

Section 7.2 of the Reference Manual:

http://caml.inria.fr/pub/docs/manual-ocaml/manual021.html#toc69

instructs the reader to perform:

#load "camlp4o.cma";;

if he wants to take advantage of syntactic sugar for stream literals.

That does not seem to be enough.

Steps to reproduce

If one tries, one will get an error message:

Error: Reference to undefined global `Dynlink'

The complete instructions are, e.g.:

$ rlwrap ocaml

#load "dynlink.cma";;

#load "camlp4o.cma";;

Then we can use stream literals:

[< '3 >];;

  • : int Stream.t =
@vicuna
Copy link
Author

vicuna commented Jan 31, 2012

Comment author: @protz

Fixed in r12107, will probably appear online as soon as the manual is re-generated, maybe for the next version of OCaml.

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