Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jean-Yves Moyen <jymoyen@ens-lyon.fr>
To: caml-list@inria.fr
Subject: probleme de parsing ?
Date: Tue, 29 Feb 2000 20:06:51 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.4.21.0002292003300.28398-100000@jamaique> (raw)

Bonjour, il y a apparamment un probleme de parsing des chaines dans la
fonction int_of_string : les espaces precedents (ou suivant) les nombres
ne sont pas eliminer. En revanche, il le sont dans la fonction
float_of_string :

# int_of_string " 5";;
Uncaught exception: Failure("int_of_string")
#float_of_string " 5";;
- : float = 5

(avec Ocaml 2.04)

Est-ce voulu ? Si oui, pourquoi avoir introduit cette difference ?


Hypocoristiquement,
Jym.




             reply	other threads:[~2000-03-01 17:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-29 19:06 Jean-Yves Moyen [this message]
2000-03-01 17:19 ` Sven LUTHER
2000-03-06  9:07   ` Xavier Leroy
2000-03-06  9:43     ` Sven LUTHER
2000-03-01 18:07 ` Vitaly Lugovsky
2000-03-02  2:26 ` Max Skaller
2000-03-06  8:52 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.21.0002292003300.28398-100000@jamaique \
    --to=jymoyen@ens-lyon.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox