lua-users home
lua-l archive

Re: Why are these functions not equal?

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


It might be that the manual refers to creating functions from (literally) same code. 
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> function factory() return function() end end
> print(factory() == factory())
true
Peter

AltStyle によって変換されたページ (->オリジナル) /