Support for calling external functions from expressions and using the return value