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.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e28ffe0eaf31d1b6,start X-Google-Attributes: gid103376,public From: "James B. White, III (Trey)" Subject: Re: Ada vs C++ Date: 1997/09/02 Message-ID: <340C47F8.670B@osc.edu>#1/1 X-Deja-AN: 269560604 References: <34090462.4652@easystreet.com> Organization: Ohio Supercomputer Center Newsgroups: comp.lang.ada Date: 1997-09-02T00:00:00+00:00 List-Id: The ability of C++ compilers to infer template instantiations may be dangerous, but it allows the construction of incredibly powerful interfaces. Combined with the ability to inline functions, you can write strange constructions called "expression templates" and "template metaprograms" that perform optimizations that are extremely difficult or impossible for a compiler to perform on its own. Ada may have advantages over C++, but only C++ allows these incredibly powerful programming techniques. Unfortunately, the techniques are also incredibly complicated and incredibly ugly. The resulting interface, however, can be elegant. For more information, see the following references by the inventor, Todd Veldhuizen. I would love for Ada to provide the same level of power, preferably in a more elegant and straightforward way! -- James B. White, III (Trey) Ohio Supercomputer Center trey@osc.edu Phone: (614)292-9291 Fax: (614)292-7168