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: 101deb,87f6968ed41c9df1 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,5ac12f5a60b1bfe X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,5ac12f5a60b1bfe X-Google-Attributes: gidf43e6,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Ada versus PL/I (was: Re: Ariane 5 - not an exception?) Date: 1996/09/07 Message-ID: #1/1 X-Deja-AN: 179055388 references: <50dkud$t7h@goanna.cs.rmit.edu.au> organization: Courant Institute of Mathematical Sciences newsgroups: comp.software-eng,comp.lang.ada,comp.lang.pl1 Date: 1996-09-07T00:00:00+00:00 List-Id: James Kanze says "This isn't true for C (and thus Turbo C), of course. You have to include math.h. While it is a built in in older lanugages like Fortran or Basic, most modern languages will require a declaration for the function somewhere. (I'm tempted to say that a language that doesn't require a declaration for a function is somewhat deficient, but SQRT is a special case.)" I would definitely give in to this temptation (and say that a language that does not require a definition for sqrt is deficient). In the absence of a commitment to IEEE semantics, the definition of sqrt is not well defined at the language level, and it is better that it come from a designated library whose semantics are well defined (note that math.h does not meet that requirement anyway, but certainly the math libraries in Ada do meet this requirement).