perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [Fwd: Re: [rfc] APR::Table & polymorphic values]
Date Thu, 05 Jun 2003 06:47:24 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> 
>>Hmm, what about storing the pointer to apreq_value_t as val 
> 
> 
> AFAICT, that helps nada.

true, again because of newSVpv

>>in the table and subclass get() to do what you want?
> 
> 
> Just subclassing get() might work!  At the moment
> I'm concerned about how each() is implemented; does
> each make a call to FETCH to get at the value?  If 
> so, how does it handle multivalued keys?

 From the perltie manpage:

   FIRSTKEY and NEXTKEY implement the keys() and each() functions
   to iterate over all the keys.

looks like mpxs_APR__Table_NEXTKEY is correct, though we don't really have a 
test in t/response/TestAPR/table.pm for this.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message