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,d275ffeffdf83655 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Ada vs C++ vs Java Date: 1999/02/09 Message-ID: #1/1 X-Deja-AN: 442483935 References: <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77ledn$eu7$1@remarQ.com> <77pnqc$cgi$1@newnews.global.net.uk> <8p64spq5lo5.fsf@Eng.Sun.COM> <77t3ld$nou$1@nnrp1.dejanews.com> <79ce4s$lfq$1@nnrp1.dejanews.com> <79chc7$ko6@drn.newsguy.com> <79mn6h$bls@drn.newsguy.com> <36C0126E.B59B208A@acenet.com.au> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 918582278 16664 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: On Tue, 9 Feb 1999, Geoff Bull wrote: > Brian Rogoff wrote: > > > > > I thought you were commenting on how C++ > > automatic instantiation resulted in more readable code (projection I > > suppose :-), in which case it wouldn't have been so silly. > > > > Is automatic instantiation safe? > I.e. can you be surprised by what actually gets instantiated? That's a question that probably needs lots of actual experimentation to answer, but the only written study I know of on the subject in the Ada context (ACM Tri-Ada 91 p 338-346) suggests that the answer is no, and provides some examples which show enhanced readability of some code sections with automatic instantiation. Unfortunately I don't think the preprocessor the authors used is available for modification. -- Brian