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

toplevel crash on "\" #2645

Closed
vicuna opened this issue Dec 22, 2000 · 1 comment
Closed

toplevel crash on "\" #2645

vicuna opened this issue Dec 22, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 22, 2000

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

Bug description

Full_Name: Florian Douetteau
Version: 3.00
OS: linux
Submission from: marsu.ens.fr (129.199.131.41)

    Objective Caml version 3.00

"";;

  • and nothing happens -
@vicuna
Copy link
Author

vicuna commented Dec 22, 2000

Comment author: administrator

Full_Name: Florian Douetteau
Version: 3.00
OS: linux
Submission from: marsu.ens.fr (129.199.131.41)

    Objective Caml version 3.00

"";;

  • and nothing happens -

Thank you for the (supposed) bug report.

However this is absolutely conform to the specification of the
languages's lexical convention: strings are arbitrary sequel of
characters enclosed by mtaching " characters; hence inside a string a
" must be explicitely escaped, using an additional \ before the
" character (\ is Caml's so-called escape character); therefore the
string "" is not terminated; hence Caml is waiting for an extra "
character that should indicate the end of your string; if you don't
add this extra ", Caml is waiting for your input ad libitum:

""";;

  • : string = """

"";;

it works with an additional";;

  • : string = "";;\nit works with an additional"

Hope this helps,

Pierre Weis

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

@vicuna vicuna closed this as completed Jan 8, 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