Thursday, April 02, 2015

[lotoidaq] Accessing nested functions

In a programming language supporting nested functions, provide a way to call an inner function directly from the global scope.  We need some way of naming the inner scope the function is in (perhaps line and column number in the source), and some way of providing the closure of symbols visible to the inner function (perhaps a record type).  Neither seem too hard.

The obvious application is for interactive debugging, perhaps from an interpreter.

No comments :