D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5620 - Implicit conversion of RegexMatch to bool
Summary: Implicit conversion of RegexMatch to bool
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Mac OS X
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-20 08:13 UTC by Jacob Carlborg
Modified: 2011-12-09 11:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jacob Carlborg 2011-02-20 08:13:34 UTC
It would be nice if RegexMatch could be implicit converted to a bool. Returning true for a match and false for no match.
Comment 1 Dmitry Olshansky 2011-12-09 11:46:37 UTC
Works in new std.regex.