lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 15-Aug-05, at 3:30 PM, Diego Nehab wrote:

People would still write

    socket = require"socket"

instead of

    local socket = require"socket"

Not if all the examples they saw had the second construction, I suspect.

I like Mark's idea of autoloading modules for the stand-alone interpreter, for what it's worth.

Question: should we start recommending that people use require for standard libraries, too? :

local math = require "math"

I'd personally like to move in that direction...

R.