int or size_t ?
    Stewart Gordon 
    smjg_1998 at yahoo.com
       
    Sun May  8 10:26:34 PDT 2011
    
    
  
On 07/05/2011 18:09, %u wrote:
> In Patterns of Human Error, the slide 31 point that you should replce int with
> size_t
> why that consider an error ?
For those who aren't sure what this is on about:
http://www.slideshare.net/dcacm/patterns-of-human-error
But the short answer is because dim is a size_t, i needs to cover its range.
But....
<= should be = ?  Don't you mean < ?
And the use of a meaningless type alias gets at me.
Stewart.
    
    
More information about the Digitalmars-d-learn
mailing list