object
type
typeNames extends
parentTypeName
handlerList
end
firstTypeName
TypeNames is a series of data type names, in which every name except the first is prefixed with the keyword aka
for a singular synonym or the keyword pl
for a plural name or synonym. Names can be more than one word long:
object type fraction aka rational number pl fractions pl rational numbers
ParentTypeName is the name of a data type to inherit handlers and properties from. HandlerList is a series of on
, function
, to create
, to delete
, to get
, and/or to set
structures. FirstTypeName must be the first name that appears in typeNames.
The object type
structure creates a new user-defined object type. The behavior of the created object type is defined by the handlers in handlerList.
Attempting to create a new user-defined object type with the name of an existing data type (including object types previously defined with object type
) has no effect. No script error is triggered, and the data type maintains its previously defined behavior. This may change in a future version of OpenXION.