A value-returning function should not output to the inherited #CURRENT-OUTPUT.

#2537   Compile-time warning

A value-returning function should not output to the inherited #CURRENT-OUTPUT.

Explanation

A value-returning function that outputs to its inherited #current-output can lead to unpredictable behaviour, depending on the calling context. Uses of output inside such a function should appear inside using output as scope.