Re: Recursive anonymous functions?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Recursive anonymous functions?
- From: "Aaron Brown" <aaron-lua@...>
- Date: 2004年7月22日 15:49:38 -0400
Bennett wrote:
> I don't know Lua well enough to answer for Lua, but in at
> least one other language (that I do know well:-) I can
> answer it by creating a lexical closure; let the anonymous
> function capture a lexical variable that holds a copy of
> the reference to the anonymous function.
I don't know how deep you'd have to get into the language in
question to answer this, but wouldn't the function be
considered non-anonymous if a variable contained a reference
to it?
--
Aaron