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,b0d68c502c0ae6 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Printing Enum Variable Re: Linux World Date: 1999/03/07 Message-ID: #1/1 X-Deja-AN: 452381028 Sender: matt@mheaney.ni.net References: <7bfc2n$jl9@dfw-ixnews5.ix.netcom.com> <7bhh26$r7c$1@remarQ.com> <36DCAC1F.430E2C5E@aasaa.ofe.org> <7bk4v8$kl8$1@remarQ.com> <36DDA761.7B4E8099@aasaa.ofe.org> <7bkrmm$ao1$1@nnrp1.dejanews.com> <36DE0007.5236CEA2@aasaa.ofe.org> <7bmmu2$n0h@news1.newsguy.com> <7btj81$j0d$1@remarQ.com> NNTP-Posting-Date: Sun, 07 Mar 1999 15:58:30 PDT Newsgroups: comp.lang.ada Date: 1999-03-07T00:00:00+00:00 List-Id: "Michael Young" writes: > It's also worth noting that C++ destructors formalize resource > deallocation, addressing the resource leak issue very effectively. It is the same for finalization of a Controlled type in Ada95. > While I'm not especially fond of the old SDK, its structure looks > surprisingly like object use in Ada today. Instead of the more succinct > C++/Java style aWindow.GetDC(), we see GetDC(aWindow). This isn't a very convincing argument, since the C++/Java version requires one more token than the Ada version. The advantage of the Ada syntax is that binary operations are symmetrical. You don't want to have a distinguished receiver, because there isn't one -- there are two. Indeed, there may be more. The other benefit of the Ada way is that the syntax for manipulation of user-defined types is consistent. You don't want to have Yet Another Notation just because the type happens to be tagged. Push (Item, On => Stack); Is stack a tagged type or not? I don't know -- but that's the point.