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,6b6619eb9cada212 X-Google-Attributes: gid103376,public From: whraven@wri.newsfeeds.com (Richard Pinkall-Pollei) Subject: Re: Help me to chose between ADA 95 and C++ Date: 2000/01/12 Message-ID: #1/1 X-Deja-AN: 571756745 X-Abuse-Info2: ALL Spam complaints are acted upon within 24 hours! X-Report: Report abuse to abuse@newsfeeds.com References: <01bf37fb$a91afb60$0564a8c0@IS-D2D04C.test> <829rbv$a8m$1@nntp6.atl.mindspring.net> <01bf3e32$0b9dc880$022a6282@dieppe> <385112AE.7E2CFA9@rdel.co.uk> <833d8i$sjf$1@nntp5.atl.mindspring.net> <38566835.B4A2D48@rdel.co.uk> <1999Dec14.143953.1@eisner> X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body X-Trace: 12 Jan 2000 13:30:01 -0600, 204.128.189.22 X-Authenticated-User: whraven Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups. User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: comp.lang.ada Date: 2000-01-12T00:00:00+00:00 List-Id: >> If conversions get that numerous, it is a sign of bad design. > >I don't agree. If you have: > > type A1 is access all T1'Class; > type A2 is access all T2'Class; > >where "T2 is new T1 with ...", then it is perfectly natural to want to >convert from A2 to A1. It is not a sign of bad design at all. But Ada >requires an explicit type conversion in this case, which is a flaw in >Ada. Hm. Without any context, the claim that the above is or is not bad design cannot be made. Since T2 is derived, would a access to base type be more appropriate? Is T2 really an extension or should it be incorporated in T1? What is the purpose and how will they be used? Rich Pinkall-Pollei --- C makes it easy for you to shoot yourself in the foot. C++ makes that harder, but when you do, it blows away your whole leg. -- Bjarne Stroustrup -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==---------- http://www.newsfeeds.com The Largest Usenet Servers in the World! ------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----