develooper Front page | perl.perl5.porters | Postings from January 2006

RE: Checking warning flags

Thread Previous | Thread Next
From:
Paul Marquess
Date:
January 12, 2006 00:40
Subject:
RE: Checking warning flags
Message ID:
016c01c61753$c7dfdfa0$4c05140a@myopwv.com
From: Gisle Aas [mailto:gisle@ActiveState.com]
 
> Andy Lester <andy@petdance.com> writes:
> 
> > Warnings are handled like this throughout:
> >
> > if (ckWARN(WARN_MISC))
> >      Perl_warner(aTHX_ packWARN(WARN_MISC), "Undefined value assigned to
> typeglob");
> >
> > Why?
> 
> Probably because the original code tried to avoid the overhead of a
> function call, 

Yep, that was the reasoning.

> but in change 25050 even ckWARN was made into a
> function call.

Didn't see that change going through. Was it decided that it wasn't a
performance hit to make ckWARN a function?

Paul


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About