[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: How should local work with tied scalars?



Rick Delaney writes:
> First, is this what I should expect for localizing tied scalars?  i.e. a
> FETCH of the old value, a STORE of "" (why?) and then a STORE of the new
> value.  I didn't see this documented anywhere.

This is fortunate.  The current behaviour makes no sense.

Moreover, with magic SVs localization *cannot* make sense with the
current API.  One should be able to add additional flags to MAGIC
structures which indicate what to do during localization.

[SKIP]

> I'm finding this confusing and don't think I could predict the behaviour
> of a similar piece of code.

This is a normal state of mind when you know Perl in a lot of
details.  :-(

Ilya


References to:
Rick Delaney <rick.delaney@home.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]