Bug 6689 – Pure std.exception.bailOut()

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-09-18T11:43:00Z
Last change time
2011-09-29T06:10:11Z
Keywords
patch
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-09-18T11:43:43Z
I suggest to add the "pure" annotation to the function std.exception.bailOut(), so enforce() too gets inferred as pure.
Comment #1 by k.hara.pg — 2011-09-18T15:37:39Z
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 by bearophile_hugs — 2011-09-24T16:12:40Z
We'll eventually have a pure map/filter in D.