[fpc-devel] Suggestion for change: Overly strict check

Vinzent Hoefler JeLlyFish.software at gmx.net
Thu Sep 28 11:19:16 CEST 2006


On Wednesday 27 September 2006 20:50, ik wrote:

> Let me give you an example of a real bug that allow attackers to gain
> root access using X-server, and I hope you will understand why such
> checking can be a good thing.

It *can*. But as usual the pros and cons should be weighted properly. 
Although I usually like tremendous amounts of compiler checks, because 
they save my time, I have to agree with Christian here. 
This sort of "syntax" check is far too strict. If at all, it should be a 
warning and *only* if the types could actually be confused.

Forcing people to use Hungarian Notation, like it was already suggested, 
to avoid this check doesn't help neither, there are enough examples for 
that.

(Granted, maybe this is due to the fact, that I always write "self. ..." 
for an object method/variable, so local names can't get confused in 
such a way at all.)


Vinzent.




More information about the fpc-devel mailing list