Inline Template
begin template inline (className, refAttrName)
where a.attrName = $refAttrName
and a.classDefinedIn = $className; )
define localAttrs(cName) as
where c.metaClassName = cName;
for all attrs in localAttrs(refClass)
add_attribute ($className, attrs.attrName,
attrs.attrType, attrs.attrValue);
for all obj in extents($className):
for all Attr in localAttrs(refClass)
obj.set (obj.Attr, valueOf(obj.refAttrName.Attr))
delete_attribute ($className, $refAttrName);