comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: List of Negative Language rules?
Date: Sun, 05 Aug 2012 22:25:05 +0300
Date: 2012-08-05T22:25:05+03:00	[thread overview]
Message-ID: <a87vkfFb7rU1@mid.individual.net> (raw)
In-Reply-To: <p6ft18dvj55o0h1j3af7ic08f2omoc1j20@invalid.netcom.com>

On 12-08-05 21:42 , Dennis Lee Bieber wrote:
> On Sun, 5 Aug 2012 07:39:42 -0700 (PDT), Patrick
> <patrick@spellingbeewinnars.org> declaimed the following in
> comp.lang.ada:
> 
> 
>>
>> Pre-Ada 2012 functions cannot take in parameters
> 
> 	Prior to Ada 2012, functions ONLY took "IN" parameters, so
> designation of the parameter as of "IN" mode was redundant and unneeded.

But "in" mode could be specified explicitly, if desired, and some coding
style/rule guides required it.

> Ada 2012 opens functions up to having side-effects via the use of "IN
> OUT" parameters,

A function in Ada 2012 can also have pure "out" parameters.

> so one now has to designate the mode of the parameter.

What, "has to"? Specifing the mode is still optional, in Ada 2012 as
before, and "in" mode is the default. Even for functions. At least as I
read the RM.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .



  parent reply	other threads:[~2012-08-05 19:25 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 14:39 List of Negative Language rules? Patrick
2012-08-05 15:24 ` Bill Findlay
2012-08-05 15:43   ` Patrick
2012-08-05 19:17   ` Niklas Holsti
2012-08-05 16:02 ` Nasser M. Abbasi
2012-08-05 16:14   ` Patrick
2012-08-06  2:56     ` Randy Brukardt
2012-08-05 16:33 ` Yannick Duchêne (Hibou57)
2012-08-05 17:10   ` Patrick
2012-08-05 18:07 ` Vasiliy Molostov
     [not found] ` <p6ft18dvj55o0h1j3af7ic08f2omoc1j20@invalid.netcom.com>
2012-08-05 19:25   ` Niklas Holsti [this message]
2012-08-05 23:35     ` Patrick
2012-08-06  0:07       ` Vasiliy Molostov
2012-08-06  0:26         ` Patrick
2012-08-06  1:04           ` Vasiliy Molostov
2012-08-06  1:33             ` Patrick
2012-08-06  2:57           ` Randy Brukardt
2012-08-06  3:21             ` Patrick
2012-08-09 21:24               ` Randy Brukardt
2012-08-09 22:00                 ` Patrick
2012-08-06  2:51       ` Randy Brukardt
replies disabled

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