comp.lang.ada
 help / color / mirror / Atom feed
From: "(see below)" <yaldnif.w@blueyonder.co.uk>
Subject: Re: Lack of formal syntax undermines Ada
Date: Sat, 12 Apr 2008 16:06:45 +0100
Date: 2008-04-12T16:06:45+01:00	[thread overview]
Message-ID: <C4268E95.E448A%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: wccod8f1ba9.fsf@shell01.TheWorld.com

On 12/04/2008 13:57, in article wccod8f1ba9.fsf@shell01.TheWorld.com,
"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote:

> John McCabe <john@nospam.assen.demon.co.uk.nospam> writes:
> 
>> Robert A Duff <bobduff@shell01.TheWorld.com> wrote:
>> 
>>> John McCabe <john@nospam.assen.demon.co.uk.nospam> writes:
>>> 
>>>> As I understand it, that was deliberate; Ada's feature that functions
>>>> may not have side-effects ...
>>> 
>>> Ada functions can have side effects.
>> 
>> Bugger - where did I get that idea from then (have to admit, it's been
>> a while since I paid a lot of attention to Ada!)
> 
> Perhaps from the fact that 'in out' and 'out' parameters are illegal for
> functions.  As Robert Dewar likes to point out, the effect of this rule
> is that functions can have side effects, so long as they are not
> properly documented.  ;-)
> 
> Functions can modify global variables if they are visible.
> Functions can also modify data via pointers.

And they can call procedures or entries that can do almost anything.

-- 
Bill Findlay
<surname><forename> chez blueyonder.co.uk





  reply	other threads:[~2008-04-12 15:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11  9:41 Lack of formal syntax undermines Ada usenet
2008-04-11 11:20 ` Peter C. Chapin
2008-04-15 12:57   ` usenet
2008-04-16  2:26     ` Peter C. Chapin
2008-04-16  3:14       ` Eric Hughes
2008-04-17  6:37     ` Randy Brukardt
2008-04-11 17:27 ` Georg Bauhaus
2008-04-11 18:13   ` Adam Beneschan
2008-04-11 21:25 ` John McCabe
2008-04-11 21:45   ` Robert A Duff
2008-04-11 22:37     ` John McCabe
2008-04-11 23:08       ` Adam Beneschan
2008-04-12  7:16         ` Dirk Craeynest
2008-04-14  7:23         ` Jean-Pierre Rosen
2008-04-12 12:57       ` Robert A Duff
2008-04-12 15:06         ` (see below) [this message]
2008-04-12 16:25           ` John McCabe
2008-04-12 17:55             ` (see below)
2008-04-12 22:19               ` John McCabe
2008-04-13  1:13                 ` (see below)
2008-04-13 11:51                   ` John McCabe
2008-04-13 14:13                     ` (see below)
2008-04-13 19:34                       ` John McCabe
2008-04-13 20:51                         ` (see below)
2008-04-13 21:06                           ` John McCabe
2008-04-12 17:16         ` Gary Scott
2008-04-12 18:43           ` Peter C. Chapin
2008-04-12 19:16             ` Gary Scott
2008-04-12 20:04               ` Robert A Duff
2008-04-12 23:32                 ` Gary Scott
2008-04-13  1:16                   ` Robert A Duff
2008-04-12 20:02           ` Robert A Duff
2008-04-12 20:52             ` Pascal Obry
2008-04-13 22:01       ` Florian Weimer
2008-04-13  9:46 ` anon
2008-04-15 13:22   ` usenet
2008-04-15 16:08     ` Adam Beneschan
2008-04-13 22:04 ` Florian Weimer
replies disabled

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