develooper Front page | perl.perl5.porters | Postings from September 2000

UNTIE docs and tweak.

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
September 1, 2000 10:30
Subject:
UNTIE docs and tweak.
Message ID:
E13UuTz-0005wP-00@roam1

I just checked in Change 6981 which adds more about UNTIE to perltie.pod.

I also tinkered with implementation of UNTIE in pp_sys.c to make
this bit of the new documentation true:

"
If the UNTIE method exists then the warning above does not occur. Instead the
UNTIE method is passed the count of "extra" references and can issue its own
warning if appropriate. e.g. to replicate the no UNTIE case this method can
be used:

    sub UNTIE
    {
     my ($obj,$count) = @_;
     carp "untie attempted while $count inner references still exist" if $count;
    }

"

Given that UNTIE exists to work round the "Gotcha" the warning would be 
irritating to people that had gone to the trouble to implement it.
But the extra references may still be a problem in some cases so I have 
given UNTIE the information to police the issue itself.



-- 
Nick Ing-Simmons


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About