lua-users home
lua-l archive

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


From: Rici Lake
> On 4-Oct-06, at 3:10 PM, Gavin Kistner wrote:
> 
> > True. Something feels wrong to me about using a closure to 
> tie certain
> > variables to a certain function, but it's certainly effective.
> 
> That's what closures are, surely? :)

I seem to have been distracted when I wrote that. What I really meant
was:

"It feels wrong to use a closure just to wrap a single instance of a
function up with some data. Because, I dunno, I'm used to closures being
used to repeatedly tie different local variables with the same function
instance."

Certainly nothing functionally wrong with it, just...weird.