[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Let's talk about __call
- From: Gavin Wraith <gavin@...>
- Date: Fri, 22 Jul 2016 12:01:59 +0100
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/