http://qs321.pair.com?node_id=1230812


in reply to Re: call sub_function easily
in thread call sub_function easily

Along these lines, Implementing Dispatch Tables has some more information that might be helpful.