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

UNTIE docs and tweak.

Thread Previous | Thread Next
Nick Ing-Simmons
September 1, 2000 10:30
UNTIE docs and tweak.
Message ID:

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About