On Wed, Aug 10, 2005 at 10:47:47AM +0200, Juerd wrote: > Larry Wall skribis 2005-08-09 16:19 (-0700): > > So either something in the context tells us what "Foo" means, or > > it will be taken as a list operator that hasn't been declared yet. > > Is there, by the way, a pragma to force predeclaration of subs, to gain > compile time typo checking?
Actually, "use optimize :package<closed>" effectively does that. But it's an toplevel optimization, which is not applicable to module authors. So I'd very much welcome a lexical pragma that forces static binding of subroutine calls. Preferably we can use the same pragma can handle methods as well. Something like: use strict 'calls'; Thanks, /Autrijus/
pgpIuINydqhUi.pgp
Description: PGP signature