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.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fa2221f5dd5f5100 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-24 03:49:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Newbie question about pointers in GNAT 3.15p on Windows 2000 : to Steve Date: Mon, 24 Feb 2003 05:48:53 -0600 Organization: ENST, France Message-ID: Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1046087368 39091 137.194.161.2 (24 Feb 2003 11:49:28 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 24 Feb 2003 11:49:28 +0000 (UTC) To: "comp.lang.ada mail to news gateway" 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 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:34504 Date: 2003-02-24T05:48:53-06:00 ----- Original Message ----- From: "prashna" Newsgroups: comp.lang.ada To: Sent: February 24, 2003 12:40 AM Subject: Re: Newbie question about pointers in GNAT 3.15p on Windows 2000 : to Steve > > If you are absolutely certain the variable will not be referenced after the > ^^^^^ > > lifetime of the procedure or function in which it is declared> > > Hi Steve, > This sentence is bit confisung for me.I am not sure you are talking > about which variable. Are talking about BUFSIZE (or P_SIZE). Both > these variables are local to function X and it is absolutely > impossible to refer these variables outside X.Please clarify this. > And also please let me know how it is risky if I use > 'Unchecked_Access. He is referring to the variable of which you are taking the 'access -- i.e., BUFSIZE. It is risky to use 'Unchecked_Access if the result of the 'Unchecked_Access attribute is passed outside the function, because when BUFSIZE goes out of scope (i.e., when X returns), the result of the 'Unchecked_Access which has been passed outside of X will no longer be valid. > > Thanks in Advance > Ashwath > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >