An unexpected string to int exception.

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 17 11:08:12 PST 2016


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 case
> >> "g1" only the 1 was reported.
> >
> > Please file a bug, I'll look into making a fix for it.
> 
> I shamefully admit that I've discovered this bug months ago and
> tampered with three error messages on the following page: :D
> 
>   http://ddili.org/ders/d.en/fibers.html
> 
> 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?? ;-)


T

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net)


More information about the Digitalmars-d-learn mailing list