Super Lint

Derek Parnell derek at psyc.ward
Wed Sep 20 15:12:20 PDT 2006


On Wed, 20 Sep 2006 12:09:28 -0700, Walter Bright wrote:

> I've been interested in various ideas for static checking for common bug 
> patterns for D. For example:
> 
> 	for (int i = 0; i < 10; i++)
> 	{	foo();
> 		break;
> 	}
> 
> would be flagged as a suspicious use of break. Are there any legitimate 
> uses of break in this manner? Any thoughts and ideas in this direction?

I have used this type of thing as a temporary debugging aid. But I suppose
I could use ...

 	for (int i = 0; i < 10; i++)
 	{	foo();
 		debug break;
 	}


-- 
Derek Parnell
Melbourne, Australia
"Down with mediocrity!"



More information about the Digitalmars-d mailing list