lua-users home
lua-l archive

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

a() is referring to the anonymous function "function return b() end" which
is different to both a and b


Dave Nichols
Match-IT Limited
Tel: 0845 1300 510
Fax: 0845 1300 610

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-----
[]On Behalf Of King, Mike
Sent: 13 June 2006 16:00
Subject: Function Addresses?

Can someone tell me why the following code reports two different
function addresses?

function a()
	return function () return b() end

function b()
	return a()