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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5c4627b775acf6be X-Google-Attributes: gid103376,public From: "E. Robert Tisdale" Subject: Re: The Ada Scalar, Vector, Matrix and Tensor arithmetic library? Date: 1999/12/05 Message-ID: <384A9CEB.92A6766D@netwood.net>#1/1 X-Deja-AN: 556923555 Content-Transfer-Encoding: 7bit References: <38497235.D8339C38@netwood.net> <82btoo$8201@news.cis.okstate.edu> <82buhr$8q61@news.cis.okstate.edu> <38498EB1.306427C8@netwood.net> <82c7mu$a2g1@news.cis.okstate.edu> <3849E314.6281FC6D@netwood.net> <82cors$9281@news.cis.okstate.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-05T00:00:00+00:00 List-Id: David Starner wrote: > I disagree - > it's better to design an API that lets programers do what they need > and lets library developers make a efficient implementation > even if they don't have much choice in how to do it. > For example, the C function memcpy has a decent interface, > but there is one way to implement it. > I fail to see how changing that would improve memcpy. You are confused. The memcpy function liberates library developers to implement it as they see fit. The result is undefined if the source and destination memory areas overlap. The application programmer is cautioned to use the memmove function instead if the source and destination might overlap. The memmove function is safer but requires unnecessary overhead when the source and destination do not overlap. E. Robert Tisdale