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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,669a0df36b2c7d06 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-14 16:01:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: coding 'Output References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc51.ops.asp.att.net 1058223673 12.234.13.56 (Mon, 14 Jul 2003 23:01:13 GMT) NNTP-Posting-Date: Mon, 14 Jul 2003 23:01:13 GMT Organization: Comcast Online Date: Mon, 14 Jul 2003 23:01:13 GMT Xref: archiver1.google.com comp.lang.ada:40270 Date: 2003-07-14T23:01:13+00:00 List-Id: >> would require slice assignments to/from Data and Data is >> typically large, so that's not a good solution. >Why is this (putting the array and other info into a record type) not a good >solution? What have large slices got to do with it? Because it's often necessary to pass large slices and time is important. eg, given Data : X(1 .. 50_000); I can call Process_Middle(Rate, X(15_000 .. 35_000)); passing nothing just a pointer and bounds. But if Rate and Data are part of a record, I'd have to pass Process_Middle(X_Record'(Rate, X(15_000 .. 35_000))); which I believe would require building a temporary object and copying 20K elements of X.