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,e528d54e6cc3c10d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!da342007!not-for-mail From: "stephane richard" Newsgroups: comp.lang.ada References: Subject: Re: why only in-parameters in functions X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: Date: Wed, 29 Sep 2004 15:30:42 GMT NNTP-Posting-Host: 129.44.80.68 X-Complaints-To: abuse@verizon.net X-Trace: trndny04 1096471842 129.44.80.68 (Wed, 29 Sep 2004 11:30:42 EDT) NNTP-Posting-Date: Wed, 29 Sep 2004 11:30:42 EDT Xref: g2news1.google.com comp.lang.ada:4391 Date: 2004-09-29T15:30:42+00:00 List-Id: "Rick Santa-Cruz" 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. :-).