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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a59c0afeb6808e51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-02 15:40:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <1f358d66.0208302358.6f1c6a39@posting.google.com> <87y9an5tt2.fsf@deneb.enyo.de> <1f358d66.0209020705.6769d948@posting.google.com> <0DMc9.5002$YN.1223639060@newssvr30.news.prodigy.com> Subject: Re: Howto debug seg-faulting Ada 95 code? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1031006449 66.31.5.146 (Mon, 02 Sep 2002 22:40:49 GMT) NNTP-Posting-Date: Mon, 02 Sep 2002 22:40:49 GMT Organization: AT&T Broadband Date: Mon, 02 Sep 2002 22:40:49 GMT Xref: archiver1.google.com comp.lang.ada:28672 Date: 2002-09-02T22:40:49+00:00 List-Id: > "Jeffrey Creem" wrote in message > news:FhMc9.91102$kp.733909@rwcrnsc52.ops.asp.att.net... > > > Either use new or declare the variable at the library level (in a > package) > > to make it go on the heap. > > What has a declaration at the library level have to do with the heap? > > Techically nothing..I don't believe I have ever read anything in the LRM that says for sure that if you declare a variable in a package it goes on the heap but if you declare it in a procedure (including the mainline) it goes on the stack. (See, now why did Robert have to go and leave...Where is Tucker Taft when you need him) Having said that, every compiler I have used does something like this. It also tends to make intuitive sense.