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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8b756d9a0afb052a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!texta.sil.at!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Quick question about Ada code formatting. Date: Sat, 18 Feb 2006 15:43:09 +0100 Organization: Cablecom Newsserver Message-ID: <4731771.ZZhzKurNmQ@linux1.krischik.com> References: NNTP-Posting-Host: 84-74-134-212.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1140275704 8242 84.74.134.212 (18 Feb 2006 15:15:04 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sat, 18 Feb 2006 15:15:04 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:2956 Date: 2006-02-18T15:43:09+01:00 List-Id: Peter C. Chapin wrote: > When it comes to calling subprograms I've seen some sources that put a > space between the name of the subprogram and the argument list. > > My_Procedure (X, Y, Z); > A := My_Function (B); > > When wrapping such calls the entire argument list is moved down to the > next line. > > My_Procedure > (Very_Long, Argument_List, With_Many, Arguments); That's what the GNAT pretty printer does. > In other communities (C/C++) it is more common to leave the space out > and also to leave the opening '(' on the same line as the procedure > name. I like the space on the same line as well - but the pretty printer will soon move it down. And basicly I won't fight it. The GNAT pretty printer uses ASIS to analyse the source and hence makes very few mistakes and no mistakes that render the code unusable. Yes, I can layout the code better then the pretty printer but the difference is so small that I don't see the point in doing manual code layout any more. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com