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,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: why learn C? Date: Thu, 12 Apr 2007 14:32:20 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230700.925143.28490@n59g2000hsh.googlegroups.com> <6XbPh.4025$u03.802@newssvr21.news.prodigy.net> <1175491660.511530.58430@y80g2000hsf.googlegroups.com> <_esTh.11650$eC.2533@trndny03> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1176402740 14072 192.74.137.71 (12 Apr 2007 18:32:20 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 12 Apr 2007 18:32:20 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:nt2vqpW56vClTvDguYs5vd7IY+8= Xref: g2news1.google.com comp.lang.ada:14954 Date: 2007-04-12T14:32:20-04:00 List-Id: Hyman Rosen writes: > The C++ code has no pointers at all. The automatic instantiation done by > the C++ template mechanism is similar in its goals to Ada's operator > overloading. A universe of candidate functions is searched through a rules > system that picks one best choice or reports an error. Operator overloading is just one subset of subprogram overloading -- there's nothing special about operators, except they use a different notation. The same is true in C++, although C++ doesn't allow top-down overload resolution, which is an annoying restriction. - Bob