Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000259OCamlOCaml generalpublic2001-01-12 09:572001-01-12 11:19
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000259: Re: Newby ocaml user's question on interactive mode
DescriptionHi,

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


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002200)
administrator (administrator)
2001-01-12 11:18

> > 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

(0002201)
administrator (administrator)
2001-01-12 11:19

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

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker