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

Re: Newby ocaml user's question on interactive mode #2656

Closed
vicuna opened this issue Jan 12, 2001 · 2 comments
Closed

Re: Newby ocaml user's question on interactive mode #2656

vicuna opened this issue Jan 12, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 12, 2001

Original bug ID: 259
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,

Thank you for your message to the Caml mailing list.

However your message seems to be a bug report; hence I send it to the
relevant mailing list

caml-bugs@inria.fr

Thank again for your interest in Caml.

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/

According to the AQ_DEBUTANT-eng.html I should be able to do the
following in the interactive mode:

How to quit the interactive system ?

Type:
quit();;

However I get the following:

$ocaml
Objective Caml version 3.00

quit();;

Unbound value quit

The same happens with all the toplevel directives in

"Chapter 9: The toplevel system (ocaml)" of

  	   "The Objective Caml system
                              release 3.00
                    Documentation and user's manual
                              Xavier Leroy"

Is this my mistake or is the documentation wrong?

I am working on Debian Linux.

Regards.
Johann

J.H. Spies - Tel. 082 782 0336
"Enter into his gates with thanksgiving, and into his
courts with praise. Be thankful unto him, and bless
his name." Psalms 100:4

@vicuna
Copy link
Author

vicuna commented Jan 12, 2001

Comment author: administrator

According to the AQ_DEBUTANT-eng.html I should be able to do the
following in the interactive mode:

How to quit the interactive system ?

Type:
quit();;

However I get the following:

$ocaml
Objective Caml version 3.00

quit();;

Unbound value quit

The same happens with all the toplevel directives

In OCaml, all toplevel directives are prefixed with a "#" sign that
must be explicitly entered by the user. This "#" sign is not to be
confused with the "#" prompt of the toplevel itself. Hence:

~$ ocaml
Objective Caml version 3.00+20 (2000-12-03)

#quit;;

~$

The FAQ is probably referring to the earlier Caml Light
implementation, where directives were presented as regular Caml
functions accessible from the toplevel, hence "quit();;" to quit Caml
Light.

Hope this helps,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 12, 2001

Comment author: administrator

User got confused by the "#" sign that starts toplevel directives.

@vicuna vicuna closed this as completed Jan 12, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant