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

Re: [PATCH] %_ (was Re: [PATCH] operation on `PL_na' may be undefined)

From:
Dave Mitchell
Date:
January 8, 2003 03:31
Subject:
Re: [PATCH] %_ (was Re: [PATCH] operation on `PL_na' may be undefined)
Message ID:
20030108112751.B534@fdgroup.com
On Wed, Jan 08, 2003 at 11:18:35AM +0000, Nicholas Clark wrote:
> On Wed, Jan 08, 2003 at 11:12:15AM +0000, Dave Mitchell wrote:
> > Note that %_ should *not* be used to print SVs containing the names
> > of pad lexicals, since for these the SvCUR() field is hijacked for the
> > generation number. Sticking with %s and PVX(sv) is the Right Thing to do
> > here.  (See PAD_COMPNAME_GEN()).
> 
> Is that pre your pad work? Is that documented anywhere yet?

The SvCUR hijacking stuff was pre-me, the macro that formalised it was mine.
it was documented (by me) at line 3080 of op.c, and in perlapi for
PAD_COMPNAME_GEN

As hacks go, it is asymptotically grody to the max (or something like
that).

-- 
"You're so sadly neglected, and often ignored.
A poor second to Belgium, When going abroad."
Monty Python - "Finland"



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