to!()() & leading/trailing whitespace

Jonathan M Davis jmdavisprog at gmail.com
Mon Aug 16 20:30:28 PDT 2010


On Monday 16 August 2010 16:49:45 bearophile wrote:
> Jonathan M Davis:
> > A string with whitespace is _not_ a number.
> 
> I will not agree with this this (I am talking about leading/trailing
> whitespace only). Regarding the other things you say, I have already given
> answers to them.
> 
> Bye,
> bearophile

Why don't you just use parse()? It allows for leading whitespace, and it's 
really the function that's intended for turning strings into other types if it's 
not an exact conversion.

- Jonathan M Davis


More information about the Digitalmars-d mailing list