lua-users home
lua-l archive

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


This is about that f(a1, a2, a3, a4) below. How does one access a1-a4 from inside the "xxx" script? Are they stored in some table or something?

Thanks.
 

	-----Original Message----- 
	From: lua-bounces@bazar2.conectiva.com.br on behalf of Luiz Henrique de Figueiredo 
	Sent: Thu 7/14/2005 7:44 AM 
	To: Lua list 
	Cc: 
	Subject: Re: dofile
	
	

	> Was any decision made on whether dofile parameters
	> and return values will be modified in Lua 5.1?
	
	What do you mean?
	"dofile" returns everything the chunk returns.
	"dofile" does not pass arguments to the chunk. If you want this, do
	        local f=loadfile"xxx"
	        f(a1,a2,a3,a4)
	--lhf
	

<<winmail.dat>>