On Tue, 2005-05-24 at 22:41 +1000, Erik de Castro Lopo wrote:
> Benno wrote:
> 
> > Does anyone want to convince me otherwise?
> 
> I have seen bugs in GNU Arch and Ecartis (mailing list manager)
> that were caused by a variable in an outer scope being shadowed
> in an inner scope.
> 
> If -Wshadow catches on single bug its worth living with or 
> rather working around any spurious warnings.
> 
> I wouldn't cut C code without it.

I can't stand it, the namespace is way too polluted to ever consider
using it.

Scope is there for a reason :  so that you *can* use names that resolve
elsewhere.

If you don't want scope, use assembler :).

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to