comp.lang.ada
 help / color / mirror / Atom feed
From: "stephane richard" <stephane.richard@verizon.net>
Subject: Re: why only in-parameters in functions
Date: Wed, 29 Sep 2004 15:30:42 GMT
Date: 2004-09-29T15:30:42+00:00	[thread overview]
Message-ID: <CyA6d.9651$sP2.4719@trndny04> (raw)
In-Reply-To: cjejo4$62e$00$1@news.t-online.com


"Rick Santa-Cruz" <rick_santa_cruz75@msn.com> wrote in message 
news:cjejo4$62e$00$1@news.t-online.com...
> Hi,
>
> I know that it is only allowed to use in-parameters with functions. But I 
> can't figure out what is the idea behind this. Why did the Ada-Team only 
> allow in-parameter when using functions?
>
> Thanks in advance,
> Rick
>
Maybe I can answer that, with my still very limited knowledge...and wait for 
others to correct me ;-).

I would assume that since a function returns a value Out parameters would 
also allow to change values outside the function.  even if it's available in 
other languages, it's usually recommended to not do so for good practice. 
so to enforce it isn't all that bad a thing. :-).






  reply	other threads:[~2004-09-29 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 15:18 why only in-parameters in functions Rick Santa-Cruz
2004-09-29 15:30 ` stephane richard [this message]
2004-09-29 16:55 ` Alexander E. Kopilovich
2004-09-29 21:10   ` Randy Brukardt
2004-09-29 23:37     ` Björn Persson
2004-09-29 23:46       ` Rick Santa-Cruz
2004-09-29 21:12   ` Florian Weimer
2004-09-30  7:41     ` Dmitry A. Kazakov
2004-09-29 22:42   ` Wojtek Narczynski
2004-09-30  1:55   ` Matthew Heaney
replies disabled

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