Extern function/task definition in generate-block scope within scope of class definition

In reply to dave_59:

I need 2 different definitions of a function dependent on a parameter, and this seemed like an easy way to do this. Thanks for your response.