.\" XXX standard disclaimer belongs here....
.\" $Header: RCS/addattr,v 1.4 91/08/16 18:17:20 hong Exp $
.SP ADDATTR COMMANDS 6/14/90
.XA 2 "Addattr"
.uh NAME
.lp
addattr \*- add attributes to a class
.uh SYNOPSIS
.lp
.b addattr
.b (
attname1
.b =
type1
{ ,
.r attname \c
.i i
.b =
.r type \c
.i i
}
.b )
.b TO
.r classname{*}
.uh DESCRIPTION
.lp
The
.b addattr
command
causes new attributes to be added to an existing class,
.i classname .
The new attributes and their types are specified
in the same style and with the the same restrictions as in
.b "create" 
(commands).
.lp
The new attributes will not be added to
any classes which inherit attributes from
.i classname ,
unless the
.q *
is present.
.lp
The initial value of each added attribute for all instances is
.q "null."
.lp
For efficiency reasons,
default values for added attributes
are not placed in existing instances of a class.
If default values are desired,
a subsequent
.b "replace"
(commands) query should be run.
.uh EXAMPLE
.lp
/* add the date of hire to the emp class */
.br
addattr (hiredate = abstime) to emp
.uh "SEE ALSO"
.lp
create(commands).
.uh "BUGS"
.lp
.q *
is not supported in Version 3.
