digitalmars.D.bugs - BUG: isNumric()
- Fredrik Olsson (10/15) Nov 12 2005 I have found that isNumeric() accepts "+", but toInt() chokes on it. I
I have found that isNumeric() accepts "+", but toInt() chokes on it. I 
guess whatever isNumeric() says is ok should be safe to pass on to 
isInt() and isFloat().
Here is a quick diff to std/string.d (0.137) that solves this problem, I 
have not done any further analyzis of compatibility of isNumeric() and 
toInt() and toFloat().
3136c3136,3140
<         j++;
---
     {
         j++;
         if (j == iLen)
             return false;
     }
//Fredrik Olsson
 Nov 12 2005








 
  
  
  Fredrik Olsson <peylow gmail.com>
 Fredrik Olsson <peylow gmail.com>