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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32e9e18947de9391 X-Google-Attributes: gid103376,public From: "Chad R. Meiners" Subject: Re: Comments at the End of Lines Date: 1999/07/03 Message-ID: <931033493.075.42@news.remarQ.com>#1/1 X-Deja-AN: 496855617 References: <7lir0r$og1$1@usenet01.srv.cis.pitt.edu> <377e3757.0@news.pacifier.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: newsabuse@remarQ.com X-Trace: 931033493.075.42 ZYYQ2O1IFB36BCE97C qube-02.us-ca.remarq.com Organization: Posted via RemarQ, http://www.remarQ.com - The Internet's Discussion Network X-MSMail-Priority: Normal NNTP-Posting-Date: Sat, 03 Jul 1999 20:24:53 GMT Newsgroups: comp.lang.ada Date: 1999-07-03T00:00:00+00:00 List-Id: > You'll have a hard time persuading me that you need comments on separate > lines for the following code (declarations). > > pieceLength : Float; -- inches > pieceArea : Float; -- square feet > pieceVolume : Float; -- cubic feet > > SteveD Wouldn't it be better to declare ADT's for the units of measurement? You could then write the declarations like this: pieceLength : Inches; pieceArea : Square_Feet; pieceVolume : Cubic_Feet; You then can have proper type check since I cannot think of a reason why you would want to assign a volume to length. Not to mention that the remarks are now unnecessary. -Chad R. Meiners