lua-users home
lua-l archive

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


2016-01-28 20:32 GMT+02:00 Marc Balmer <marc@msys.ch>:
> 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')

Message from the "Save Keystrokes Campaign":

Wouldn't it be nice if one could write:

   require"gui,rpr"

and get gui and rpr as globally visible packages?