[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.1w crash bug -- '...' related
- From: Eric Tetz <erictetz@...>
- Date: Fri, 3 Sep 2004 10:51:50 -0700
Roberto Ierusalimschy wrote:
> I hope the following patch (in file ldo.c) solves both problems with
> varargs. Please let me know the results.
That fixed both problems. :)
> (Should I use the context format for diff?)
No, that format's fine. Patch doesn't care.
BTW: I had hoped that:
function foo(...) print(unpack(arg), '\n') end
function foo(...) print(..., '\n') end
Would behave differently, with the former printing only the first arg,
and the latter printing all arguments as if the arguments had
literally been expanded inline. That's not how it works, huh?