lua-users home
lua-l archive

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


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