Question about: ("1.1").to!int;

Виталий Фадеев vital.fadeev at gmail.com
Sat Oct 24 04:04:18 UTC 2020


On Friday, 23 October 2020 at 16:59:06 UTC, matheus wrote:
> On Friday, 23 October 2020 at 13:57:41 UTC, Joseph Rushton 
> Wakeling wrote:
>> On Wednesday, 21 October 2020 at 22:50:27 UTC, matheus wrote:
> Well since the caller is handling a string, shouldn't the 
> caller verify the content before any conversion?

What if:
"1.1.1".to!int
?

The algorithm will become more complicated?
Will the speed decrease?



More information about the Digitalmars-d-learn mailing list