From: Sven LUTHER <luther@dpt-info.u-strasbg.fr>
To: Jean-Yves Moyen <jymoyen@ens-lyon.fr>
Cc: caml-list@inria.fr
Subject: Re: probleme de parsing ?
Date: Wed, 1 Mar 2000 18:19:50 +0100 [thread overview]
Message-ID: <20000301181950.A3021@dpt-info.u-strasbg.fr> (raw)
In-Reply-To: <Pine.GSO.4.21.0002292003300.28398-100000@jamaique>; from jymoyen@ens-lyon.fr on Tue, Feb 29, 2000 at 08:06:51PM +0100
On Tue, Feb 29, 2000 at 08:06:51PM +0100, Jean-Yves Moyen wrote:
> 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 ?
et au passage est-ce normal que caml-light 0.74 plante pour 1./.0. mais pour
1/0 l'exception est proprement attraper par le toplevel ?
Amicalement,
Sven LUTHER
next prev parent reply other threads:[~2000-03-01 19:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-29 19:06 Jean-Yves Moyen
2000-03-01 17:19 ` Sven LUTHER [this message]
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=20000301181950.A3021@dpt-info.u-strasbg.fr \
--to=luther@dpt-info.u-strasbg.fr \
--cc=caml-list@inria.fr \
--cc=jymoyen@ens-lyon.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