On 07/17/2010 09:32 PM, Peter Münster wrote:
On Sat, Jul 17 2010, luigi scarso wrote:

Why don't put them into a table as is in
http://www.lua.org/pil/10.1.html

Ok, now one file defines exactly one "command" table.
I added also other minor enhancements.

If you start your files like this:

  command = command or {}
  command['placefloat'] = {
    comment = "Insert a floating element.",
    ...
  }

then they could easily all be merged into a single command table
during loading or even via 'cat'.

Like Mojca says, it is better not to be dependent on the file name, and
also it is more efficient to have a single lua file than 500-600
separate ones. There is no need to combine them immediately, but if
this goes into the distro at some point then a single large file is
definitely better than lots of smaller ones.

Best wishes,
Taco
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to