Unused selects in SHTOLO

jyoung at steptools.com jyoung at steptools.com
Tue Oct 14 14:25:38 EDT 2003


>>>>> "E" == Ed Barkmeyer <edbark at nist.gov> writes:

E> Rob is correct that the process of extending EXTENSIBLE SELECT types produces 
E> artifact select types that have no use.  This may or may not also apply to 
E> EXTENSIBLE ENUMERATION types.

E> I have no objection to the rule Rob intends, but I think we may want to be a bit 
E> careful about the wording:

E> (1) The rule should include both SELECT types and ENUMERATION types, and could 
E> in general apply to any data type that is created by a TYPE declaration and has 
E> no "role" (is not the data type of any attribute) in the resulting schema. Any 
E> such data type need not be included in the long form schema, 

There are other possible references to TYPE names besides their use in
the declaration of attribute types.  STRING values compared with the
result of TYPEOF, and the STRING argument to USEDIN, as found in many
local (WHERE) and global (RULE) constraints, for example.  Another
place is LOCAL declarations in FUNCTIONs.  Also, it's probably not
advisable to prune out any TYPE _explicitly_ interfaced, even if it
is not used anywhere in the resulting schema.  (I hope this is not
the very case at issue?)

E> but:

E> (2) When a SELECT data type plays a role, every (interfaced) data type in the 
E> select list of that select type also plays that role.

E> (3) When a defined data type is included in the long-form schema, its 
E> underlying-type must be included in the schema, even if it plays no role.

Jeff
-- 
Jeff Young (jyoung at steptools.com)
STEP Tools, Inc. / 216 River Street / Troy, New York  12180 USA
Phone: 518.687.2848 x314 (voice) / 518.687.4420 (fax)



More information about the wg11 mailing list