[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to specify parameters to a file chunk?
- From: "chong tsong" <tsongchong@...>
- Date: Fri, 5 Jan 2007 14:42:53 +0800
Many thank you all. It seems that my PIL is quite out of date
2007/1/5, Glenn Maynard <email@example.com>:
On Fri, Jan 05, 2007 at 01:47:55PM +0800, chong tsong wrote:
> As we know, loadfile() read a lua file and build a function accordingly.
> Can we give the function any parameters when invoking it?
> for example:
> -- chunk.lua
"arg" is a 5.0ism. In 5.1, use "...":
local a = ...;
or any of the other ways of accessing "...", eg. print(...).