Article # 523, added by Geoworks, historical record
| first | previous | index | next | last |

Defining a class that is not a subclass of a GEOS class.



Q. How do I define a new class that is not a subclass of any of the
   GEOS subclasses?

A. Use a syntax similar to this:

   @class MyNewClass, meta;
   @endc;

   However, you can't actually declare an object from this class. It
   will not have a class pointer and thus will be unclassed, causing
   any number of problems in GEOS. Instead, you will be much better
   off if you subclass from MetaClass. It defines all the messages for
   managing objects in GEOS.