From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 14 Jan 2022 10:05:32 -0600 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Help with designing data structure for novice Ada programmer Date: Fri, 14 Jan 2022 11:05:33 -0500 Organization: IISS Elusive Unicorn Message-ID: References: <87sftx1vpd.fsf@nightsong.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-6pWa5hqa/OS8aG9t/NUJcMvFz7Ybx2nYG3WwkaXS9wK2+9fdU7cJ9GrJTMnsbzczo6FHvh3cTrNmG/n!gX7oAZoNJoYeCrDAd8zrkS6qWeqGeEdaJ75Kf0Ni6NprIMhzjPC5geeIZt/1KTNZI8nsnYPv X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2077 Xref: reader02.eternal-september.org comp.lang.ada:63372 List-Id: On Fri, 14 Jan 2022 00:01:22 -0500, "1.AAC0832" declaimed the following: > You DO have to bring in a special proc to FREE memory allocated > on the heap however. Kinda weird - you'd think making and freeing > would naturally be implemented together. This "free()" is very > type-specific, multiple incarnation of the proc will be needed > if you have multiple kinds of records to free. > Take into account the origins for Ada. Many embedded/real-time applications follow the practice of pre-allocating all memory during application initialization before transitioning into "running" mode. They never deallocate memory. If something goes wrong, the entire application system is rebooted, resetting all memory. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/