lua-users home
lua-l archive

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


In message <20160722104801.GA28234@magritte.tecgraf.puc-rio.br>
          Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

> I wish I used __call more often. I hope to learn clever ways in this thread.
> (Thanks Patrick for steering us back a useful thread!)

I often find

  (getmetatable "").__call = string.format

useful for making code less verbose.

--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/