Does string.isNumeric mean that parse!int will not throw?

Cooler kulkin at hotbox.ru
Thu Feb 20 11:11:54 PST 2014


The code:

string s = "...";
if(s.isNumeric){
     auto x = parse!int(s); // Can I be sure here that parse will
not throw?
}


More information about the Digitalmars-d-learn mailing list