digitalmars.D.learn - Template subclasses
- Andrew (10/10) May 28 2009 I'm curious how someone implements a templated class. Basically, how do...
- Jarrett Billingsley (7/17) May 28 2009 You instantiate the base class.
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 28 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. =A0Basically, how d=o I do this:Class Foo(T) { =A0T bar; } Class Fee:Foo { =A0T fum; } Any ideas? thanks -AndrewYou instantiate the base class. class Fee(T) : Foo!(T) { T fum; }
May 28 2009