D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6689 - Pure std.exception.bailOut()
Summary: Pure std.exception.bailOut()
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-09-18 11:43 UTC by bearophile_hugs
Modified: 2011-09-29 06:10 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 bearophile_hugs 2011-09-18 11:43:43 UTC
I suggest to add the "pure" annotation to the function std.exception.bailOut(), so enforce() too gets inferred as pure.
Comment 1 Kenji Hara 2011-09-18 15:37:39 UTC
https://github.com/D-Programming-Language/phobos/pull/263

I have already posted a pull request #263 to make enforce family @safe and pure.
Comment 2 bearophile_hugs 2011-09-24 16:12:40 UTC
We'll eventually have a pure map/filter in D.