On 12/8/06, Derek B. Smith <[EMAIL PROTECTED]> wrote:
Why is return 1 coded at the end of many programs. For
example:

I know it means true but what does this do and why?

Derek,

For historical reasons, the final statement of any script that is
imported with use or require (and possibly do?) must return true so
that the compiler knows the module has (in theory) been imported
properly.

'return1;' or more frequently just '1;' has become the norm because
it's simple, easy, and clear. At this point it's almost an article of
faith. In theory, though, any true value would suffice.

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to