Originally, token was intended to be used as a token to represent a "pure event" i.e. one without a value.
At the same time it was a base class for all the other token classes. We have since made an EventToken
class to represent pure events. It remains public for some level of backward compatibility.


Generally, we have not pushed to make classes abstract, since concrete base classes allow for testing.
We've also avoided making classes final that we don't intend to extend simply (e.g. most actors)
because we don't want to restrict others who use the code too much.


Steve

At 05:17 PM 3/13/2003 -0800, Jim Kleckner wrote:
Token seems like an excellent candidate to
be an abstract base class since the documentation
states that it should not be instantiated.

Any reason to not do that?

Jim




---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]



---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]

Reply via email to