[wg11] Part 11: redeclared attributes

Heidi L Preston hpreston at ebmail.gdeb.com
Tue Apr 20 16:31:30 EDT 2004


All-

I was hoping someone could entertain a Part 11 question.  Is the following
EXPRESS legal?:

ENTITY A;
attribute_a : X;
END_ENTITY;

ENTITY B
SUBTYPE OF (A);
SELF\A.attribute_a : Y;
END_ENTITY;

ENTITY C
SUBTYPE OF (B);
SELF\A.attribute_a : Z;
END_ENTITY;

Questionable here is the redeclare in C.  It appears that it should be a
redeclare of B (not A).  Is the above construct allowed according to Part
11?

Thanks,
Heidi





***************************************************************************
Heidi Preston
Electric Boat Corporation
75 Eastern Point Road
Groton, CT 06340
(860) 433-8649




More information about the wg11 mailing list