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

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

Dave Mitchell
January 8, 2003 03:31
Re: [PATCH] %_ (was Re: [PATCH] operation on `PL_na' may be undefined)
Message ID:
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

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

"You're so sadly neglected, and often ignored.
A poor second to Belgium, When going abroad."
Monty Python - "Finland" Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About