[Issue 6843] Function to check whether std.conv.to will succeed

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 6843] Function to check whether std.conv.to will succeed

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843 Vladimir Panteleev changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 6843] Function to check whether std.conv.to will succeed

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp CC|

[Issue 6843] Function to check whether std.conv.to will succeed

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843 Andrei Alexandrescu changed: What|Removed |Added Version|unspecified |D2 --

[Issue 6843] Function to check whether std.conv.to will succeed

2013-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 --- Comment #6 from Jonathan M Davis 2013-09-06 21:54:18 PDT --- Another possibility would be a function which did the same thing as std.conv.to except that it returned success, and the actual result was returned via an out parameter. That's e

[Issue 6843] Function to check whether std.conv.to will succeed

2011-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 --- Comment #5 from Jonathan M Davis 2011-10-23 12:53:16 PDT --- And this enhancement request is for a conversion function which doesn't throw. And once you have such a function, I see no need for maybeTo, but that's a separate argument. Regar

[Issue 6843] Function to check whether std.conv.to will succeed

2011-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 --- Comment #4 from bearophile_h...@eml.cc 2011-10-23 12:46:46 PDT --- (In reply to comment #3) > They're similar but not the same. Bug# 6840 is suggesting the creation of a > template which wraps whether std.conv.to succeeds by catching the exc

[Issue 6843] Function to check whether std.conv.to will succeed

2011-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 --- Comment #3 from Jonathan M Davis 2011-10-23 11:10:36 PDT --- They're similar but not the same. Bug# 6840 is suggesting the creation of a template which wraps whether std.conv.to succeeds by catching the exception. This is highly inefficien

[Issue 6843] Function to check whether std.conv.to will succeed

2011-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 6843] Function to check whether std.conv.to will succeed

2011-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6843 --- Comment #1 from Jonathan M Davis 2011-10-23 00:19:29 PDT --- Oh, and std.conv.to and std.conv.parse would probably use tryTo and tryParse respectively internally in order to reduced code duplication, but I suppose that that's up whoever im