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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Mon, 20 Sep 2004 09:36:27 +0200 Organization: AdaCL Message-ID: <10750641.RSZU9pgrY0@linux1.krischik.com> References: <49dc98cf.0408110556.18ae7df@posting.google.com> <17sx057ro5jw5$.t2qlaeoxg611$.dlg@40tude.net> <1095082522.132276@master.nyc.kbcfp.com> <18ym85v67zof3$.7oqswzjfgswr.dlg@40tude.net> <1095090665.624419@master.nyc.kbcfp.com> <68zmgy3b894u.rs67cy6jjfiq$.dlg@40tude.net> <1164383.Vq7EPUUJyU@linux1.krischik.com> <2177491.OlAk1RxoCA@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1095666471 01 17285 HWChXl7vdeyKr-n 040920 07:47:51 X-Complaints-To: usenet-abuse@t-online.de X-ID: TFUPCwZYYeJVol5RAhKC2RFBCxApV+mKmw0IZSucEducm58nRn9Jw+ User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:3858 Date: 2004-09-20T09:36:27+02:00 List-Id: Simon Wright wrote: > Georg Bauhaus writes: > >> Martin Krischik wrote: >> :> for constants, >> :> >> :> X: constant Ragged := >> :> ( new String'("1"), >> :> ... >> :> >> :> does just as well, the allocations are performed by the compiler, >> :> not at run time :-) >> : >> : Really! I did not know that! Where does it say in the RM - or is a >> : compiler dependent optimisation. >> >> I've found it to be true, and it looks like compatible with >> "evaluation of an allocator" and elaboration (control, preelaborate?). >> I don't know whether there is a sentence addressing this directly, >> maybe the experts can tell? >> >> Both ObjectAda and GNAT do this. I don't know whether it is at >> all possible to intruct ObjectAda not to "preallocate" constant >> string pointers. > > This code > > package New_String is > > type String_P is access all String; Should it be not "access constant String". With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com