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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b2f46302cf6a9a2f X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Using ARRAYS for grade reporting? Date: 1998/04/19 Message-ID: #1/1 X-Deja-AN: 345634670 References: <35392586.E773500B@erols.com> <1998041903445200.XAA06273@ladder01.news.aol.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 892992264 19089 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-04-19T00:00:00+00:00 List-Id: GOTHIC SIN said <> In order to avoid the "blind-leading-the-blind" phenomenon which can be very confusing, I strongly suggest that unless you are a real expert in Ada (and perhaps even then -- I always do) *compile* your code before posting it to make sure that it does not have obvious errors. The above code is of course wrong, you cannot use the type String here. There are many possible corrections (constrain the string, use Unbounded_String, use a discriminant ...) depending on the exact need.