Nested functions and constant and default parameters

It would be great if we could use scripts in which our users can write functions that use constant parameters and default parameters in Pascal.
It would also be great if they could use nested functions.