Can anyone explain this OCaml toplevel behaviour?
# 1________________________________1;;
- : int = 11
(The big line is a sequence of underscores: ‘_’)
Out of curiosity, this program compiles under ocamlc, too.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Underscores are allowed in numbers (and ignored) in OCaml. From http://www.cs.ru.nl/~tews/htmlman-3.10/lex.html#xhtoc5: