execute — Convert a set expression to a set of objects
execute set expression
Sometimes you will end up needing the result of a set expression multiple times. If executing the set expression is resource intensive, you might want to avoid evaluating it multiple times. This operator executes a set expression once, and stores the resulting set of objects; the resulting set expression returns this set of objects.
This operator will commonly be used in conjunction with the set command to save the result of a time-consuming query for use in later expressions.
This set command will save in the name DBClasses all classes with DB
in their names.
set DBClasses to ~ //DB[^.]*\z/ all classes
You can then reference the set in other expressions without traversing the whole list of classes:
DBClasses intersection recursive derived classes of class "Persistent"
browse-by-query home | antlersoft free software | sourceforge project page |