On 2010-05-11 at 08:52, Dan Poirier <poir...@pobox.com> wrote: > On 2010-05-10 at 16:03, "William A. Rowe Jr." <wr...@rowe-clan.net> wrote: >> On 5/10/2010 2:25 PM, Brian McCallister wrote: >>>> ... >>>> >>>> to >>>> >>>> LuaHook AccessChecker /path/to/script.lua funcname >>>> LuaHook AuthChecker /path/to/script.lua funcname >>>> LuaHook CheckUserID /path/to/script.lua funcname >> >> Any reason not to name the func before the script, especially since path >> names >> can get long winded, and I'm thinking C like decl funcname(args) {script} > > So we'd have > > LuaHook AccessChecker funcname /path/to/script.lua > <LuaHook AccessChecker funcname>
I just thought of a problem - right now, the funcname is optional (defaults to "handle"). I hate having optional arguments that don't come at the end. I'd just as soon make it a required argument, but if people would rather it stay optional, then I'd rather leave it at the end. What do folks prefer? Dan