From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1f0eb93f00b3420e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-26 06:51:07 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!howland.reston.ans.net!darwin.sura.net!jabba.ess.harris.com!appsrv3!azimmer From: azimmer@rsa.hisd.harris.com (Alan D Zimmerman, Loral RSA) Subject: Re: Rational Compiler Problem ?? Message-ID: Sender: usenet@jabba.ess.harris.com (Usenet News Feed) Nntp-Posting-Host: appsrv3.rsa.hisd.harris.com Reply-To: azimmer@rsa.hisd.harris.com Organization: Loral Space & Range Systems References: <35ur1m$9n3@source.asset.com> Date: Mon, 26 Sep 1994 12:50:49 GMT Date: 1994-09-26T12:50:49+00:00 List-Id: In article 9n3@source.asset.com, mcconnel@source.asset.com (Andrew R. McConnell) writes: > HP/Rational platform, warning messages(not errors) are generated: > > 104: type Text_Field ( The_Text_Size : Positive := 1 ) is > 105: record > A ---------^ > A:warning: RM Appendix F: storage needed for component exceeds implementation li > mit Isn't the problem here that the compiler will allocate a string of size postitive'size. It looks like the HP won't allow you to create strings that big. I think a more portable way to accomplish this would be to create a type text_size that is constrained to be the size allowable for strings (e.g. 1..256 or 1..512). Just my $0.02 worth :-> Alan Zimmerman Software Engineer Loral Space & Range Systems Views and opinions are my own.