[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: compat file
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 17 Jun 2002 10:28:36 -0300
> I am not sure where the file 'compat', for use as a prelude with Lua
> 5.0(w0) to give compatibility with Lua 4.0, came from, but am I right in
> thinking that line 36 (in definition of "do_" ) should read
>
> local a,b = pcall(f,nil)
>
> and not
>
> local a,b = pcall(nil,f)
Yes, quite right. (Actually, the line is "local a,b = pcall(f)",
very close to your correction.) I'm afraid we put an old version of
compat.lua in the distribution :-(
-- Roberto