assert(false)

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 20 14:25:03 PDT 2013


On Thursday, June 20, 2013 22:21:28 Joseph Rushton Wakeling wrote:
> In my case it was a bunch of if/else where the program should return from
> one of the blocks. I saw comparable cases in RandomCover with an
> assert(false) at the very end of the function, so thought I'd better tweak
> my code accordingly.

Putting it at the end of the function is unnecessary. The compiler already 
does that for you.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list