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,ccb21d128bf5f2ae X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: newbie - OOP in Ada Set and Get Methods Date: Thu, 30 Dec 2004 12:14:32 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <1104237673.373489.128290@z14g2000cwz.googlegroups.com> <1104251213.061878.187430@f14g2000cwb.googlegroups.com> <1104255406.015130.138150@z14g2000cwz.googlegroups.com> <1104314768.942556.71380@z14g2000cwz.googlegroups.com> <3344921.iUdLNaQEhh@linux1.krischik.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1104408872 28423 134.91.1.34 (30 Dec 2004 12:14:32 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 30 Dec 2004 12:14:32 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:7319 Date: 2004-12-30T12:14:32+00:00 List-Id: Martin Krischik wrote: : R wrote: :> :> function Set(this: rec1; s: Integer) return Integer is :> :> 'in parameters cannot be modified inside function'(sth like this), : Declare it "in out" if you want to make changes: : function Set(this: in out rec1; s: Integer) return Integer is I'm sure this is an oversight as functions cannot have in out parameters, which is what the compiler said.