[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Colon notation in object-oriented programming
- From: "Soni L." <fakedme@...>
- Date: Sun, 5 Mar 2017 13:48:44 -0300
On 05/03/17 01:38 PM, Dirk Laurie wrote:
I meant calling one of those "static file functions" with a custom
"virtual" file that writes to a table instead of writing to an actual file.
2017-03-05 16:56 GMT+02:00 Soni L. <firstname.lastname@example.org>:
Have you ever tried:
local x = #self
No ... but I habitually put in my programs
local append = function(tbl,obj,...)
if ... then obj = obj:format(...) end
Also, file:write() takes a varargs.
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.