Geoffrey Young wrote:

Stas Bekman wrote:

As both point to the same
memory block. The address of r->info doesn't change.

Due to this fact, I see no point in trying to return the old value in
the set mode.


I suppose that makes sense.  I can't think of a reason why you would want
the old value when setting anyway - once you update r->finfo the idea is
that the old data is irrelevant.

Just because you can :) Well, could :)

We could do a full copy when called in the set-mode in non-VOID mode,
but then these two will be not equivalent:

 my $old_finfo = $r->finfo;
 $r->finfo($new_finfo);

and:

 my $old_finfo = $r->finfo($new_finfo);

So it'll be only confusing and error-prone.


yup.  so +1 on what you have.

nice work stas.

thanks ;)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to