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.

> 
> 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.

--Geoff


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

Reply via email to