nestedfunc

function is defined inside a code block

Prolint rule "nestedfunc" warns when it finds a function definition (or a procedure definition) inside a code block.
For example:

FOR EACH customer :
    FUNCTION Foo RETURNS CHARACTER (city AS CHARACTER) :
    END FUNCTION.
END.

... because it is plain silly and ugly to do that, even if the compiler accepts it.
Functions (and procedures) should not be defined inside code blocks.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: nestedfunc

But in our case it happened by accident, because someone used an
include-file within a code block... :-)