Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Sponsors

SolarWinds makes easy-to-use enterprise IT management software to help IT pros solve problems every day and help to enable efficient and effective management of networks and IT environments.

Join our online community of over 100,000 IT professionals talking shop. Get involved. Gain insights. Share tips and tricks. Visit thwack today!


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© Copyright© Same as Nmap--See http://nmap.org/book/man-legal.html

Source: http://nmap.org/svn/nselib/strict.lua

Functions

strict ()

The strict function.



Functions

strict ()

The strict function.

This function adds runtime checking to the global environment for use of undeclared globals. A global is 'undeclared' if not assigned in the file (script) scope previously. An error will be raised on use of an undeclared global.

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]