> Functions are "normal values" in lua. So you can give a function as an > argument > to another function. So I could write a function returning another function and can make the functionality of a keybind depending on certain variables? Cool. :D
> However, with lua 5.2 module() was deprecated. :-) Does that mean that "require" will work without the "module()"-line in the required file? And if "module" handles the placing of stuff of foo under foo.*, will that mean that this is also vanishing? Or does require take over at this point? Finally, I chose the "require"-way for me, because I prefer having the functions placed after the name of the file (sort of) they are in for better overview over the configuration. One question concerning that: why does stuff like "local client = client" work, more precisely: why is the second "client" accessable as the global one before "module", but not after? Is this especially designed this way, that in this case lua checks for global variables or does it have another reason? Again thanks for your help, I think I'm getting into it! Manuel -- To unsubscribe, send mail to [email protected].
