comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: coding 'Output
Date: Mon, 14 Jul 2003 23:01:13 GMT
Date: 2003-07-14T23:01:13+00:00	[thread overview]
Message-ID: <ZCGQa.54287$sY2.26024@rwcrnsc51.ops.asp.att.net> (raw)
In-Reply-To: bevbmi$9crhi$1@ID-25716.news.uni-berlin.de

>> 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.



  reply	other threads:[~2003-07-14 23:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-14  6:34 coding 'Output tmoran
2003-07-14 22:45 ` Nick Roberts
2003-07-14 23:01   ` tmoran [this message]
2003-07-15 21:23     ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox