enforce()?
    Andrei Alexandrescu 
    SeeWebsiteForEmail at erdani.org
       
    Mon Jun 28 11:38:25 PDT 2010
    
    
  
Sean Kelly wrote:
> Andrei Alexandrescu Wrote:
>> C APIs also check their arguments.
> 
> Not the standard C library, as far as I know.  Of course, it's also gotten a lot of flak for this.
Nonono. They check whenever they can. Oftentimes they're unable to check.
Example: fseek checks its whence parameter (mentioned in my previous 
post) but itoa cannot check that the target is a valid memory buffer of 
the appropriate length.
Andrei
    
    
More information about the Digitalmars-d
mailing list