[542] in java-interest
Re: BigInteger class out there?
daemon@ATHENA.MIT.EDU (jim frost)
Thu Jun 29 13:16:46 1995
To: pdoane@pcnet.com (Patrick Doane)
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: Your message of "Thu, 29 Jun 1995 10:58:08 EDT."
<v01510102ac1546b5884d@[204.213.233.104]>
Date: Thu, 29 Jun 1995 12:55:58 -0400
From: jim frost <jimf@world.std.com>
| The only benefit I've found to template functionality has been for speed
|and memory critical aspects of a program. I've come to the conclusion that
|they are next to worthless as array containers. The overhead of the
|additional code necessary to access these arrays is hardly worth the speed
|and memory savings.
I find templates particularly useful for wrapping around generic
container classes to get type checking, something along the lines of:
template<class T> class List : public GenericList {
public:
void Add(T element) {
GenericList::Add((void*)element);
}
void Append(T element) {
GenericList::Append((void*)element);
}
void Remove(T element) {
GenericList::Remove((void*)element);
}
};
FYI,
jim frost
jimf@world.std.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com