comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Aspects, rep specs, shifts, conditional expressions, expression functions
Date: Thu, 22 Dec 2011 19:01:41 -0600
Date: 2011-12-22T19:01:41-06:00	[thread overview]
Message-ID: <jd0jtn$21o$1@munin.nbi.dk> (raw)
In-Reply-To: CB186063.D1C0%yaldnif.w@blueyonder.co.uk

"Bill Findlay" <yaldnif.w@blueyonder.co.uk> wrote in message 
news:CB186063.D1C0%yaldnif.w@blueyonder.co.uk...
...
>   type blockage is (buffer_busy, locked_out) with Size => 1;

Minor stylistic comment:
The intended style for aspect_specifications is to have them indented on the 
line following the declaration, as follows:

   type blockage is (buffer_busy, locked_out)
      with Size => 1;

We had a huge argument about this in the ARG. Note that the recommended 
indentation style for any Ada construct is that shown in the syntax diagrams 
in the RM. (The layout of those productions is not random, even if a lot of 
people think it is!)

Of course, you can do whatever you want -- just keep in mind that there is 
an intended style for Ada.

                                  Randy. 





  reply	other threads:[~2011-12-23  1:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22  4:19 Aspects, rep specs, shifts, conditional expressions, expression functions Bill Findlay
2011-12-23  1:01 ` Randy Brukardt [this message]
2011-12-23 17:50   ` Bill Findlay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox