Kirk McDonald wrote: > Never mind what this actually does. The problem at hand is somehow > generating a class like this at compile-time, possibly given only the > class Foo. Tell me exactly what you need.