We can have abstract classes - in the Java sense - incomplete classes that should not be directly instantiated, but only via inheritance.
An annotation is abstract can permit the object (or class) to be instantiated only iff it is being called from an inherit or use clause from another object or class. In Grace it's trivially easy to get around
(instead of abstractCollection write object { inherit abstractCollection } but perhaps it is something.
Still could have abstract on objects and classes (if we know how to annotate them :-).
We can have abstract classes - in the Java sense - incomplete classes that should not be directly instantiated, but only via inheritance.
An annotation
is abstract
can permit the object (or class) to be instantiated only iff it is being called from an inherit or use clause from another object or class. In Grace it's trivially easy to get around (instead ofabstractCollection
writeobject { inherit abstractCollection }
but perhaps it is something.Still could have
abstract
on objects and classes (if we know how to annotate them :-).