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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Mon, 2 Oct 2017 14:01:27 -0500 Organization: JSA Research & Innovation Message-ID: References: <4dc188de-802b-41ad-9cdd-b8246eb9a1c7@googlegroups.com> <47cc6474-8b75-4644-92d0-bd1f694c20e7@googlegroups.com> <338b355a-dee4-4c73-b00e-09d9a8430fb1@googlegroups.com> <21692daf-5a52-43f0-a72a-d79e6a7dcc9f@googlegroups.com> <9d4274d7-5ad1-42d0-8ec3-de822e28ec6c@googlegroups.com> Injection-Date: Mon, 2 Oct 2017 19:01:27 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="31276"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: news.eternal-september.org comp.lang.ada:48282 Date: 2017-10-02T14:01:27-05:00 List-Id: "Johan Söderlind Åström" wrote in message news:9d4274d7-5ad1-42d0-8ec3-de822e28ec6c@googlegroups.com... >> Unless a single array is effectively the entire memory usage of your >> program, >> copying a single array is hardly "doubling the memory footprint". For >> most >> programs, it is, in fact, an insignificant increase in the memory usage >> of the >> program. > > If you have one array and then copy it, will you have two arrays or one > array? > If somehow by logic you would happen to have two arrays after you copy, > will that be double as many arrays as before? > Does a array have a memory footprint? If no then you are correct 0*2 = 0. (BTW, I've been on vacation, thus the late answers.) The above sounds like nonsense to me. Probably because you aren't specifying "object" or "type", and thus "array" by itself is unclear. Assuming you mean "array object", yes, of course after copying you'll have a new array. Depending on what you're doing with it, that usually doesn't matter. (That is, most objects are just read.) And in the situation that you were discussing, that copy only exists as long as the subprogram does, which usually isn't very long. Randy.