Topic: about string/integer conversion


Author: news user <news@sisyphus.news.be.easynet.net>
Date: Sat, 6 Jul 2002 06:21:13 GMT
Raw View
Hi,

Last days, I've participated at a discussion in gmane.comp.lib.boost.devel
about string/integer conversion.
Why ?  Cause to some strange behevior about the lexical_cast from Kevlin
Henney.

If I came here with this stuff, it's because :
lexical_cast is based on the stream << operator,
the stream << operator is base on the definition of the 'C' scanf (which
follow, If I've understand the fscan...)
fscan use other low level function...

Is it not time now to have in the Standard :

A clear/easy/safe way to perform basic conversion between string and numeric
value ?

I'm very sorry if you think it's a stupid question, but i'm not alone
thinking that these MUST be CLEAR/EASY/SAFE.
Real "on field" C++ programmers don't have time to follow all the
discussion/report/update/... of the committee and or Guru all over the web.
They have to produce clear/safe/correct code.  Please help us !

Note : From the success of the PalmOS, we can think about that : "simple
task must be done simply, difficult task must be possible".

I respect all the work made the committee, and all the book write by all the
Guru are near me.

Please don't forget the basic.

Bye.

St   phane Bronsart.

(sorry for my poor english)


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: "Philippe A. Bouchard" <philippeb@videotron.ca>
Date: Sun, 7 Jul 2002 19:00:49 GMT
Raw View
Why would you want to do that while you can already type:
istrstream("12345") >> i;

?



Philippe A. Bouchard
www.fornux.com


"news user" <news@sisyphus.news.be.easynet.net> wrote in message
news:3d255174$0$13611$afc38c87@sisyphus.news.be.easynet.net...
> Hi,
>
> Last days, I've participated at a discussion in gmane.comp.lib.boost.devel
> about string/integer conversion.
> Why ?  Cause to some strange behevior about the lexical_cast from Kevlin
> Henney.
>
> If I came here with this stuff, it's because :
> lexical_cast is based on the stream << operator,
> the stream << operator is base on the definition of the 'C' scanf (which
> follow, If I've understand the fscan...)
> fscan use other low level function...
>
> Is it not time now to have in the Standard :
>
> A clear/easy/safe way to perform basic conversion between string and
numeric
> value ?
>
> I'm very sorry if you think it's a stupid question, but i'm not alone
> thinking that these MUST be CLEAR/EASY/SAFE.
> Real "on field" C++ programmers don't have time to follow all the
> discussion/report/update/... of the committee and or Guru all over the
web.
> They have to produce clear/safe/correct code.  Please help us !
>
> Note : From the success of the PalmOS, we can think about that : "simple
> task must be done simply, difficult task must be possible".
>
> I respect all the work made the committee, and all the book write by all
the
> Guru are near me.
>
> Please don't forget the basic.
>
> Bye.
>
> St   phane Bronsart.
>
> (sorry for my poor english)
>
>
> ---
> [ comp.std.c++ is moderated.  To submit articles, try just posting with ]
> [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
> [              --- Please see the FAQ before posting. ---               ]
> [ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]
>

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]