develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH B::Deparse] Make warnings handling more robust

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
July 5, 2001 12:06
Subject:
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
20010705150626.F278781@linguist.thayer.dartmouth.edu
On Thu, Jul 05, 2001 at 07:19:46PM +0100, Robin Houston wrote:
> (An aside: I don't think it's really pessimised either; the () prototype
> still causes perl to optimise away calls to the function.)

I believe function calls are optimized away only when they have a ()
prototype *and* the body of the sub consists of returning a constant.  In
your code, the sub returns a variable, so calls won't be optimized away.

Ronald

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