Re: An unexpected string to int exception.

2016-02-17 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Feb 17, 2016 at 11:16:50AM -0800, Ali Çehreli via Digitalmars-d-learn wrote: > On 02/17/2016 11:08 AM, H. S. Teoh via Digitalmars-d-learn wrote: > > >> For example, the 'h' below was typed by my own right-hand index > >> finger. :) > >> > >>Error: Unexpected 'h' when converting from

Re: An unexpected string to int exception.

2016-02-17 Thread Ali Çehreli via Digitalmars-d-learn
On 02/17/2016 11:08 AM, H. S. Teoh via Digitalmars-d-learn wrote: >> For example, the 'h' below was typed by my own right-hand index >> finger. :) >> >>Error: Unexpected 'h' when converting from type string to type uint > [...] > > So where's the bug report?? ;-) That's the shame part. :) I

Re: An unexpected string to int exception.

2016-02-17 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Feb 17, 2016 at 10:44:40AM -0800, Ali Çehreli via Digitalmars-d-learn wrote: > On 02/17/2016 09:09 AM, H. S. Teoh via Digitalmars-d-learn wrote: > > >> apparently std.conv parse() will say the unexpected input is not > >> the one that caused the error but the character after. in this

Re: An unexpected string to int exception.

2016-02-17 Thread Ali Çehreli via Digitalmars-d-learn
On 02/17/2016 09:09 AM, H. S. Teoh via Digitalmars-d-learn wrote: >> apparently std.conv parse() will say the unexpected input is not the >> one that caused the error but the character after. in this case "g1" >> only the 1 was reported. > > Please file a bug, I'll look into making a fix for it.

Re: An unexpected string to int exception.

2016-02-17 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Feb 17, 2016 at 04:38:34PM +, Taylor Hillegeist via Digitalmars-d-learn wrote: > On Wednesday, 17 February 2016 at 16:13:47 UTC, Taylor Hillegeist wrote: > >On Wednesday, 17 February 2016 at 16:11:44 UTC, Taylor Hillegeist wrote: > >>I think the following error message says it all. >

Re: An unexpected string to int exception.

2016-02-17 Thread Taylor Hillegeist via Digitalmars-d-learn
On Wednesday, 17 February 2016 at 16:13:47 UTC, Taylor Hillegeist wrote: On Wednesday, 17 February 2016 at 16:11:44 UTC, Taylor Hillegeist wrote: I think the following error message says it all. std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002): Unexpected '1'

Re: An unexpected string to int exception.

2016-02-17 Thread Taylor Hillegeist via Digitalmars-d-learn
On Wednesday, 17 February 2016 at 16:11:44 UTC, Taylor Hillegeist wrote: I think the following error message says it all. std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002): Unexpected '1' when converting from type string to type int I would expect that 1 would be

An unexpected string to int exception.

2016-02-17 Thread Taylor Hillegeist via Digitalmars-d-learn
I think the following error message says it all. std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002): Unexpected '1' when converting from type string to type int I would expect that 1 would be among the group of expected items.