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.9 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6b93224dbe2bb55b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.217.69 with SMTP id ow5mr3353397pbc.0.1354691670682; Tue, 04 Dec 2012 23:14:30 -0800 (PST) Path: s9ni28526pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Return unconstrained types in ZFP References: <3254b304-ed8b-4601-8a3c-ab3df74d84ad@googlegroups.com> <85boebuxtm.fsf@stephe-leake.org> Date: Tue, 04 Dec 2012 03:40:47 -0500 Message-ID: <85624ius4w.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) Cancel-Lock: sha1:f4630PREVKCFI6/E1EcRiU/Nk8Y= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 2dc9150bdb712e029e66128482 X-Received-Bytes: 1418 Content-Type: text/plain Date: 2012-12-04T03:40:47-05:00 List-Id: Stephen Leake writes: > > > This way, you don't need to implement the runtime code. > > It is more of a burden for the user, but that's the point of ZFP; it's > easier to implement, harder to use. There should be a Restriction pragma setting that can warn about code that requires a runtime. There doesn't seem to be one in LRM 13.12. Ah; there are a bunch more in Annex D. Apparently the only list of restrictions in GNAT is in the source code (not a manual); lib/gcc/i686-pc-mingw32/4.5.4/adainclude/s-rident.ads The following seem likely to help: No_Implicit_Heap_Allocations No_Secondary_Stack No_Tasking -- -- Stephe