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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d227080d84012998 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-09 06:14:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.f.de.plusline.net!news-fra1.dfn.de!newsfeed.hanau.net!fr.clara.net!heighliner.fr.clara.net!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Generic and Access problem Date: Thu, 9 Jan 2003 08:13:39 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1042121643 8920 137.194.161.2 (9 Jan 2003 14:14:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 9 Jan 2003 14:14:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:32822 Date: 2003-01-09T08:13:39-06:00 ----- Original Message ----- From: "Sebastian" Newsgroups: comp.lang.ada To: Sent: Thursday, January 09, 2003 3:55 AM Subject: Generic and Access problem > Hi, > > I have a generic pool (attachment) that returns a pointer to an object. The > compiler doesn't agree with me > it thinks that the object is an constant? I found a slolution using > Access_To_Address_Conversion but > I would prefere not to use it, is there another way to solve this > problem.... The reason for the "access-to-variable designates constant" message is that in - mode parameters are always considered constants -- i.e., subprograms are not allowed to modify them. Returning an access to such a parameter implicitly grants the right to modify the item designated by the access. > > Greatful for any suggestions.... The correct spelling of the first word of the above sentence fragment is "Grateful" > > /S > > > > > ---------------------------------------------------------------------------- ---- > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >