[Next] [Previous] [Up] [Top] [Contents] [Index]
3.3 Type and Signature Declarations
New user-defined types are introduced with type declarations of the following form (ignoring parameterization and encapsulation aspects):
tp_decl 	::=	"type" name {type_relation} ";"
type_relation	::=	"subtypes" types
types	::=	type { "," type }
 The new type is considered to be a subtype of each of the types listed in the subtypes clause. The induced subtype relation over used-defined types must be a partial order (i.e., it cannot contain cycles).[11]
 Type names are interpreted in a name space distinct from that of objects and variables and that of message names. A type, an object, and a method may all be named list unambiguously.
[Next] [Previous] [Up] [Top] [Contents] [Index]
Generated with Harlequin WebMaker