Program logic bugs vs input/environmental errors
    Kagamin via Digitalmars-d 
    digitalmars-d at puremagic.com
       
    Sat Nov  1 04:14:14 PDT 2014
    
    
  
On Wednesday, 29 October 2014 at 21:23:00 UTC, Walter Bright 
wrote:
> In any case, if the programmer knows than assert error is 
> restricted to a particular domain, and is recoverable, and 
> wants to recover from it, use enforce(), not assert().
But all that does is working around the assert's behavior to 
ignore cleanups.
Maybe, when it's known, that a failure is not restricted, some 
different way of failure reporting should be used?
    
    
More information about the Digitalmars-d
mailing list