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-Thread: 103376,2c498d4a35691643 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Allocated aligned arrays Date: Sun, 20 Nov 2005 12:21:13 +0100 Organization: Cablecom Newsserver Message-ID: <1353624.Z8BU3rgR8I@linux1.krischik.com> References: <1132349753.719540.119910@g44g2000cwa.googlegroups.com> <1132351560.528877.151360@g49g2000cwa.googlegroups.com> <1132353112.226494.256380@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 84-73-3-231.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1132487103 22342 84.73.3.231 (20 Nov 2005 11:45:03 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sun, 20 Nov 2005 11:45:03 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:6501 Date: 2005-11-20T12:21:13+01:00 List-Id: ldb wrote: > However, if I do that, won't that essentially break every current > implementation of Matrix already in the code? (The code isn't small, > and it's a very commonly used datatype... ). > > Ie, is that going to require me to overload +, -, etc to work with Real > and Floats, etc? No. You can convert from and to Float: http://en.wikibooks.org/wiki/Ada_Programming/Subtypes#Checked_conversion > And/or functions that pass in a float, currently, will > need to be overloaded to also work with real, and so on? That seems > like alot of work just to get a memory allocation that is 8 bytes > farther north or south. Is there any other way, or I am up a creek? No again: all standart functions are also available as generic variants. http://en.wikibooks.org/wiki/Ada_Programming/Mathematical_calculations#Exponential_calculations Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com