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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,da8fecd51414cd54 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: warning: cannot return a local value by reference Date: Thu, 03 Jun 2004 12:37:38 +0200 Organization: AdaCL Message-ID: <2798452.09WdW2qvTy@linux1.krischik.com> References: <40be5080$0$9181$626a14ce@news.free.fr> <3595768.JMpgFWyRs6@linux1.krischik.com> <40bef751$0$13933$636a15ce@news.free.fr> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: news.t-online.com 1086261753 01 16041 oMa9GjX1TE6YHkJ 040603 11:22:33 X-Complaints-To: usenet-abuse@t-online.de X-ID: GFk-l2ZXwe+sOmcdHMzPr3FGe9l3SRyBsJhASt7WodQJc7+ZrX+p8M User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1066 Date: 2004-06-03T12:37:38+02:00 List-Id: k_leau wrote: > I think that's because Connection_type is a limited type and there was an > error message telling me "completion of non limited type cannot be > limited"...so I put limited in the public view and the error > disappeared... I am just an Ada newbie...and I am far for understanding > all the subtleties of the language yet. Well that is in fact correct. If Connection_type is limited the record need to be limited as well. But than it should have been: �����type�item_dbm�is limited�record ���������it:�item; ���������connection:�connection_type; �����end�record; as well. Otherwise I would expect that the record is not limited when used privatly. Privat use is allowed for the package and all it's child packages. One of the language lawers might explain why not. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com