perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: [rfc] APR::Table & polymorphic values
Date Mon, 02 Jun 2003 21:41:30 GMT
Stas Bekman <stas@stason.org> writes:

[...]

> The question is whether this hit (e.g. magic retrieval) is wanted for
> the general case. APR::Table is

OK- how about using SvFAKE for the APR::Table return values instead?
That way everybody wins- APR::Tables uses copy-on-write for the 
returned SV's (which is faster than doing newSVpv), and apreq can 
get the metadata back by interrogating those SV's (since they're 
not copies, so SvPVX(sv) still points to the original data[1]).

-- 
Joe Schaefer


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


Mime
View raw message