[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Function Addresses?
- From: "Dave Nichols" <dave.nichols@...>
- Date: Tue, 13 Jun 2006 16:15:31 +0100
a() is referring to the anonymous function "function return b() end" which
is different to both a and b
Regards,
Dave Nichols
Match-IT Limited
Tel: 0845 1300 510
Fax: 0845 1300 610
mailto:dave.nichols@make247.com
http://www.make247.com
Email Disclaimer: The contents of this electronic mail message and any
attachments (collectively "this message") are confidential, possibly
privileged and intended only for its addressee ("the addressee"). If
received in error, please delete immediately without disclosing its contents
to anyone. Neither the sender nor its management or employees will in any
way be responsible for any advice, opinion, conclusion or other information
contained in this message or arising from it's disclosure.
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]On Behalf Of King, Mike
Sent: 13 June 2006 16:00
To: lua@bazar2.conectiva.com.br
Subject: Function Addresses?
Can someone tell me why the following code reports two different
function addresses?
function a()
return function () return b() end
end
function b()
return a()
end
print(a()())
print(a())