VHDL Issue Number: 0102 Classification: Language Definition Problem Language Version: VHDL-87 Summary: The LENGTH attribute is ill-defined. Related Issues: 0103, ? Relevant LRM Sections: 14.1 Key Words and Phrases: LENGTH attribute, Pre-defined attributes. Current Status: Submitted 1076-1993 Disposition: Superseded (ISAC Issues Outstanding) Disposition Rationale: N/A Superseded By: 1014 ----------------------- Date Submitted: 1988/05/25 Author of Submission: Paul Menchini Author's Affiliation: CAD Language Systems, Inc. Author's Post Address: P.O. Box 13036 Research Triangle Park, NC 27709-3036 Author's Phone Number: (919) 361-1913 Author's Fax Number: Author's Net Address: mench@clsi.com ----------------------- Date Analyzed: TBD Author of Analysis: TBD Revision Number: $Revision: 1.9 $ Date Last Revised: $Date: 1995/08/03 18:29:22 $ Description of Problem ---------------------- The kind of the LENGTH attribute (LRM page 14-5) is specified as a value. However, the other array attributes (with the exception of RANGE and REVERSE_RANGE) are functions; moreover, the evaluation of A'LENGTH involves (at least conceptually) the evaluation of A'HIGH and A'LOW, both of which are functions. Since values may be "pre-evaluated", while functions are to be evaluated upon demand, it seems that the LENGTH attribute should be a function to preserved the semantics of its definition. Proposed Resolution ------------------- Change the kind of the LENGTH attribute from "value" to "function." VASG-ISAC Analysis & Rationale ------------------------------ TBD VASG-ISAC Recommendation for IEEE Std 1076-1987 ----------------------------------------------- TBD VASG-ISAC Recommendation for Future Revisions --------------------------------------------- TBD