On Wed, 15 Dec 2021 21:14:44 +0000 "Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote: > It could probably warn at `import` time, except that won't catch the > cases where people invoke it directly by its fully-qualified name. > Offhand I can't think of a good way to warn on those bits. Actually I think a better bet would be to put the warning in the callchecker, so it happens for every callsite of both lexically-imported and fully-qualified callers. Wouldn't do much about my $code = \&builtin::weaken; $code->( $var ); but I suspect if you're doing *that* you hopefully know what you're doing anyway. -- Paul "LeoNerd" Evans leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/Thread Previous | Thread Next