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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7e29322ee367c19d X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Wrap-Up (was Re: Unchecked_Conversion on different sized types -- problem?) Date: 2000/01/15 Message-ID: #1/1 X-Deja-AN: 573098497 Sender: bobduff@world.std.com (Robert A Duff) References: Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-01-15T00:00:00+00:00 List-Id: "Matthew Heaney" writes: > Compilar writers: if we use a little function to call the allocator, ie > > function "+" (S : String) return String_Access is > begin > return new String'(S); > end; > > Table : constant String_Table := > (A => +"this is a test", > B => +"of the emergency", > C => +"broadcast sytsem"); > begin > > then is the allocation still done statically? My guess is: Yes, if "+" has a pragma Inline, otherwise no. - Bob