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,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-22 22:41:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3C257CA2.E1FA726B@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? References: <9ujh51$k6m$1@wanadoo.fr> <3C0EF345.47BCC09@adaworks.com> <568ede3c.0112071202.56fc9f@posting.google.com> <3C13BC4A.1C1EBE8B@adaworks.com> <568ede3c.0112110814.1c31fd91@posting.google.com> <3C1E2D52.7499E107@adaworks.com> <1008889302.72075@master.nyc.kbcfp.com> <4a885870.0112222012.10ab7a69@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 23 Dec 2001 06:41:33 GMT NNTP-Posting-Host: 12.86.33.160 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1009089693 12.86.33.160 (Sun, 23 Dec 2001 06:41:33 GMT) NNTP-Posting-Date: Sun, 23 Dec 2001 06:41:33 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:18254 Date: 2001-12-23T06:41:33+00:00 List-Id: Will wrote: > > Mr Stroustrup said having 2 inline function with the same name but > defined different is illegal. However both g++ and vc++ are pretty > happy with > having 2 identical inline functions in different files. I 'd think its > not > mandatory for C++ compilers to detect this kind of conflicts. I wonder > how its > resolved in Ada. Search every single file to search for the inline > definition > and scream if two inline functions (of the same name ) are found? Or > be happy with the first inline found? Try guessing by looking at > comments? :) The result will depend upon how the code is written. If the inline functions with the same name are placed in two different packages, then no problem arises, since the packages provide a name space for the functions. If they are defined as stand-alone compilation units the Ada compiler will either complain about ambiguity or take the first one found, depending upon the compiler's compilation model. Jim Rogers Colorado Springs, Colorado USA