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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c63aa81a67eceb8f X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ragged Array Proposal Date: 1999/09/23 Message-ID: <7sds9k$ja7$1@nnrp1.deja.com>#1/1 X-Deja-AN: 528562922 References: <37e7c08e@eeyore.callnetuk.com> <7satei$e2q$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x39.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu Sep 23 18:41:59 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-09-23T00:00:00+00:00 List-Id: In article , Ray Blaak wrote: > Ted Dennison writes: > > Labels: constant array (Command) of Command_String_Ptr := > > (Cut => new String'("Cu&t"), > > Copy => new String'("&Copy"), > > > > Paste => new String'("&Paste"), > > ...); > > The problem with this approach is that the data is duplicated. It is > both in the static data area of the program (i.e. the string > constants), and in the heap. Perhaps. But unless I'm operating in an extremely low memory environment, why should I care? An if memory is that limited, I probably will be using a language subset that doesn't allow dynamic allocation anyway. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.