Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000251OCamlOCaml generalpublic2000-12-22 15:302001-01-08 11:54
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000251: toplevel crash on "\"
DescriptionFull_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 -


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002195)
administrator (administrator)
2000-12-22 18:28

> 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/ [^]



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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker