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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,591cbead201d7f34 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!news.germany.com!proxad.net!feeder1-2.proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <47E11F35.5000900@obry.net> Date: Wed, 19 Mar 2008 15:12:05 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Maciej Sobczak Subject: Re: Prohibiting dynamic allocation for the given type References: <83335709-e099-416b-9967-5ab6aa0aea11@i12g2000prf.googlegroups.com> In-Reply-To: <83335709-e099-416b-9967-5ab6aa0aea11@i12g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 19 Mar 2008 15:12:08 CET NNTP-Posting-Host: 81.249.125.109 X-Trace: 1205935928 news.orange.fr 882 81.249.125.109:3435 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:20487 Date: 2008-03-19T15:12:08+01:00 List-Id: Maciej Sobczak a �crit : > Is it possible to "prohibit" dynamic allocation for the given type? Just a quick idea... What about using a storage pool which raises a program_error when using it. Then apply this storage pool to the type where you want to forbid dynamic allocation. Shouldn't something like this work? Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595