User defined functions in constant expressions

Fyi, I’ve added an issue at the GitHub site, any comments and feedback by readers will be much appreciated: