[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is dofile really called for anymore?
- From: Patrick Donnelly <batrick@...>
- Date: Tue, 6 Apr 2010 07:27:57 -0400
Hi Linus,
On Tue, Apr 6, 2010 at 7:24 AM, Linus Sjögren
<thelinx@unreliablepollution.net> wrote:
> Sorry, my shorthand nazi is calling out, and I can't stop myself.
> function dofile (name)
> local f, err = loadfile(name)
> return (f and f()) or error(err)
> end
Problem here is the results from calling f are truncated to one
result. dofile returns all results. :)
P.S. Please don't top post.
--
- Patrick Donnelly