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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,66fae8c862b81b17 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.213.103 with SMTP id nr7mr2683373pbc.7.1352353164881; Wed, 07 Nov 2012 21:39:24 -0800 (PST) From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Copy vector in Ada Date: Wed, 31 Oct 2012 09:37:09 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <1aWdnbcg_8-BzAzNnZ2dnUVZ_j6dnZ2d@giganews.com> Mime-Version: 1.0 Injection-Date: Wed, 31 Oct 2012 16:37:11 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="c90e089bb12f916d4cef1340590eea0f"; logging-data="16326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NFT0CDmsWNUQZ6ObgpcIs6gQFlDeWyPc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 In-Reply-To: <1aWdnbcg_8-BzAzNnZ2dnUVZ_j6dnZ2d@giganews.com> Cancel-Lock: sha1:CECX1W/BpPfgsfS1ioLZ7NAEPBI= Path: s9ni86875pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.mccarragher.com!news.grnet.gr!newsfeed.CARNet.hr!feeder.erje.net!eu.feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-10-31T09:37:09-07:00 List-Id: On 10/31/2012 09:26 AM, katolsster wrote: > > I'm trying to figure out the best way to copy a vector into another vector > (Ada.Containers.Vectors). Is copying element by element the only way? My > vectors are tiny (in the order of max 5 elements). What wrong with assignment (":=")? -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33