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

2011-05-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 --- Comment #8 from Walter Bright bugzi...@digitalmars.com 2011-05-30 01:34:52 PDT --- (In reply to comment #5) A reminder: forbidding side effects in asserts is useful for static analyzability of the asserts. Languages that take Contracts

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #1

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 --- Comment #2 from simendsjo simen.end...@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.

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 --- Comment #3 from kenn...@gmail.com 2011-05-29 09:40:03 PDT --- (In reply to comment #2) (In reply to comment #1) In the current stage, allowing only 'pure' function inside an 'assert' is impractical, e.g. you can't use

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 --- Comment #6 from kenn...@gmail.com 2011-05-29 14:01:56 PDT --- (In reply to comment #5) (In reply to comment #4) This is as designed. Sometimes, checking code may have side effects, but it is up to the user to ensure that they do not

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

2011-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6074 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|