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,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!news-fra1.dfn.de!news-ber1.dfn.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Sun, 19 Sep 2004 12:22:32 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.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> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1095596552 4259 134.91.1.34 (19 Sep 2004 12:22:32 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sun, 19 Sep 2004 12:22:32 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:3844 Date: 2004-09-19T12:22:32+00:00 List-Id: Simon Wright wrote: : Georg Bauhaus writes: : :> 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; : S : constant String_P := new String'("foo!"); : : end New_String; If the pointers are to constant strings (I should have stressed this) there is no call to __gnat_malloc. As is type String_P is access constant String; S : constant String_P := new String'("foo!"); -- Georg