Call functions numerically with pointers

I believe C++ can distinguish types but not attributes.