Is there a way to

myfunc() {
    autoload foo && foo
}

Such that foo and any other functions it declares are local-scope only?

Zach Riggle