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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ae138aab3beb03 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-02 22:31:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Michael Bode Newsgroups: comp.lang.ada Subject: Re: Localized Variable Declaration Date: 03 Jun 2002 07:29:33 +0200 Organization: Organized? Me? Sender: mb@jupiter.solar.system Message-ID: References: <3CF77998.9040806@yahoo.com> <3CF77CDA.3090805@yahoo.com> <3CF78D3D.3030400@yahoo.com> <3CF79DFC.50613FAF@san.rr.com> <5ee5b646.0206020720.6b91978b@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 1023082234 05 30693 ulD6bPfXSkaoQY 020603 05:30:34 X-Complaints-To: abuse@t-online.com X-Sender: 320025674319-0001@t-dialin.net X-message-flag: IMPORTANT MESSAGE -- PLEASE READ IMMEDIATELY!!! X-Accepted-File-Formats: ASCII, .rtf, .ps, .pdf - *NO* MS Office files User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:25236 Date: 2002-06-03T07:29:33+02:00 List-Id: dewar@gnat.com (Robert Dewar) writes: > So let's correct that and write something that makes the > original point (which was valid and appropriately stated) > with correct code in good style: > > > procedure .... is > > begin > > Put_Line("write two numbers"); > > declare > > a : constant Integer := Read (...); > > b : constant Integer := Read (...); > > c : constant Float := Float (a) * Float (b) * 42.42; > > begin > > Put_Line ("answer = " & Float'Image (c)); > > end; > > end ....; Could someone please help a poor Ada beginner and tell me when to leave a blank between a function name and its parameter list and when not? I personally find the above Put_Line("write two number"); more readable than Float := Float (a) * Float (b) * 42.42; because I think of a function and its parameters as a unity, but I've seen the blanks in textbooks quite often. OTHO "Ada Quality and Style" favors the Put_Line(...) PS: No Holy War intended.