I know that you can specify function types in the formal arg list, but how would this be done for variable variables? I would like to do this:
class A<T> { int compare(T a, T b); }
where compare is a function variable with the corresponding type. I would like to be able to write:
A a = new A(); a.compare = ...
source share