Re: Proposed feature: die on compile with undefined functions
[email protected] (Gianni Ceccarelli via perl5-porters)
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <20260129103435.2f92d325@exelion> |
On Thu, 29 Jan 2026 10:21:35 +0000 "Paul \"LeoNerd\" Evans" <[email protected]> wrote: > Two thoughts: > > 1. AUTOLOAD also: use v5.40; if (rand() < 0.5) { *thing = sub { 1 }; } say thing(); The set of names referring to subs is not knowable at compile time. (other people can explain, much better than I can, the difference between lexical names (which *are* known at compile time) and package-scoped/global names (which aren't)) -- Dakkar - <Mobilis in mobile> GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88