lua-users home
lua-l archive

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


Wouldn't it be nice if require would take multiple package names and return multiple values? Instead of writing

local gui = require 'gui'
local rpr = require 'rpr'

one could write

local gui, rpr = require('gui', 'rpr')

- mb