WARNING

This text was automatically converted from troff me macros to HTML. Information may have been lost, added, or changed in the process. Lars Aronsson and Lysator do not guarantee the correctness of this HTML document.

NAME

addattr *- add attributes to a class

SYNOPSIS

addattr ( attname1 = type1 {, attname-i = type-i} )
 to classname{*}

DESCRIPTION

The addattr command causes new attributes to be added to an existing class, classname . The new attributes and their types are specified in the same style and with the the same restrictions as in create(commands).

The new attributes will not be added to any classes which inherit attributes from classname , unless the * is present.

The initial value of each added attribute for all instances is null.

For efficiency reasons, default values for added attributes are not placed in existing instances of a class. If default values are desired, a subsequent replace(commands) query should be run.

EXAMPLE

/* add the date of hire to the emp class */

addattr (hiredate = abstime) to emp

SEE ALSO

create(commands).

BUGS

"*" is not supported in Version 4.0.