I discovered an issue with nested functions: they must be declared before used. Is this a bug or a lenguage limitation. Whatever it is, please resolve this issue, because it screwes the very idea of nested functions, making it hard to read and maintain the code. Thanks in advance.