Library strict

Strict declared global library. Checks for undeclared global variables during runtime execution.

This module places the strict function in the global environment. The strict function allows a script to add runtime checking so that undeclared globals cause an error to be raised. This is useful for finding accidental use of globals when local was intended.

A global variable is considered "declared" if the script makes an assignment to the global name (even nil) in the file scope.

Copyright © Same as Nmap--See