[Issue 10854] New: debug should also bypass safety and nothrow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 19 08:42:52 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10854
Summary: debug should also bypass safety and nothrow
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: monarchdodra at gmail.com
--- Comment #0 from monarchdodra at gmail.com 2013-08-19 08:42:51 PDT ---
debug instructions/blocks were allowed to nicely bypass function purity. This
allows inserting impure calls for testing reasons inside pure functions.
This should be expanded for @safe and nothrow. Its really a natural evolution
IMO.
There is nothing more annoying than inserting a test "writeln()" in a function,
only to be refused because said function is @safe or nothrow.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list