[Issue 6074] Assert expressions shouldn't have side effects

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 29 08:48:58 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6074



--- Comment #2 from simendsjo <simen.endsjo at pandavre.com> 2011-05-29 08:44:37 PDT ---
(In reply to comment #1)
> In the current stage, allowing only 'pure' function inside an 'assert' is
> impractical, e.g. you can't use std.algorithm.equal.

Can't equal be pure when not using a closure? I would think having side effects
in asserts is always bad. If it's difficult to implement, at least the
documentation should be changed.

-- 
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