std.conv:to that does not throw?

An Pham home at home.com
Sat Feb 1 13:53:52 UTC 2025


On Saturday, 1 February 2025 at 02:05:13 UTC, Kyle Ingraham wrote:
> On Friday, 31 January 2025 at 22:42:14 UTC, Kyle Ingraham wrote:
>> On Thursday, 30 January 2025 at 17:19:19 UTC, Lance Bachmeier 
>> wrote:
>>> Have you looked at 
>>> [mir.conv](http://mir-core.libmir.org/mir_conv.html) and 
>>> [mir.parse](http://mir-algorithm.libmir.org/mir_parse.html)?
>>
>> I’ll give those a try tonight. At first glance I see mention 
>> of throwing so they may not fit but I’ll know for certain soon 
>> enough.
>
> It turns out that they both do throw.

For integral types, you can try my implementation
parseIntegral
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_numeric_parser.d


More information about the Digitalmars-d-learn mailing list