[Issue 8063] Purity of assert's second parameter

Jonathan M Davis jmdavisProg at gmx.com
Tue May 8 10:45:39 PDT 2012


On Tuesday, May 08, 2012 15:08:42 Nicolas Sicard wrote:
> > --- Comment #1 from bearophile_hugs at eml.cc 2012-05-08 04:12:12
> > PDT ---
> > (In reply to comment #0)
> > 
> >> Calling impure functions in the second parameter of an assert
> >> statement within
> >> the body of a pure pure is an error, even in release mode.
> > 
> > This is good.
> 
> Since it is allowed to call impure functions in debug blocks
> inside pure functions, I thought it would be coherent that assert
> could do the same.

Please don't post directly to the bug list. Respond in bugzilla please. The 
buglist if for receiving reports from bugzilla not for posting to directly.

- Jonathan M Davis


More information about the Digitalmars-d-bugs mailing list