Skip to content
Prev 1917 / 398506 Next

scoping problem?

yudi at hermes.ucd.ie writes:
You want to get rid of the quotes around fn in the outer() call. If
you pass a text string rather than the actual function, outer() will
go looking for a function of that name in its own lexical scope and fail.