lua-users home
lua-l archive

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


On Fri, May 17, 2013 at 9:26 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
   Usage for seldom-needed cases:
      has"assign,clear,new,delete"(obj)
   Usage for common cases:
      has"table"=has"concat,insert,remove,pack,unpack,sort" -- once
      has_table(obj)


Nice notation - I'm assuming that 'has"table"' should be 'has_table' in the assignment. Easy enough to optimize by making a set out of the methods.