perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

[doc] builtin should document the behaviour of `weaken` and `unweaken` on non-references

Open tobyink opened this issue 2 years ago • 2 comments

Where builtin

Description builtin should document what weaken and unweaken do when called on non-references.

(Pretty sure the answer is that they're a no-op.)

tobyink avatar Jul 17 '22 19:07 tobyink

They both croak for defined non-references.

tonycoz avatar Jul 18 '22 05:07 tonycoz

They both croak for defined non-references.

Please review https://github.com/Perl/perl5/pull/19965 for tests and documentation.

jkeenan avatar Jul 18 '22 14:07 jkeenan