May 29, 2009
I'm curious how someone implements a templated class.  Basically, how do I do this:

Class Foo(T) {
  T bar;
}

Class Fee:Foo {
  T fum;
}

Any ideas?

thanks

-Andrew
May 29, 2009
On Thu, May 28, 2009 at 11:11 PM, Andrew <andrew.spott@gmail.com> wrote:
> I'm curious how someone implements a templated class.  Basically, how do I do this:
>
> Class Foo(T) {
>  T bar;
> }
>
> Class Fee:Foo {
>  T fum;
> }
>
> Any ideas?
>
> thanks
>
> -Andrew
>

You instantiate the base class.

class Fee(T) : Foo!(T)
{
    T fum;
}