Please enable JavaScript to view this site.

ESL Documentation

You can delete an object, or even a class of objects, from a class of objects by specifying a delete from class statement; for example:

 

delete Rolls from class LuxuryCars

 

Here, the object Rolls is deleted from the class LuxuryCars. Or:

 

delete Fuels from class HeatingCosts

 

Here, each of the members of the class of objects, Fuels, is deleted from the class HeatingCosts.

 

If ancestry is used in the add to class statement, it should also be used in the delete from class statement.

 

Deleting an object from a class has no effect on the attributes of the object itself. The object still exists. The only results of deleting an object from a class is that selecting the specified object no longer invokes the responses that have been defined for the class; and any action statements that reference the class no longer affect that object.

 

When an object is a member of more than one class, deleting it from one class has no effect on its membership in other classes.