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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79bbf7e359159d0d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-11 14:44:03 PST Path: supernews.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Fraser Wilson Newsgroups: comp.lang.ada Subject: Re: newbie can't get exceptions to work! Date: 11 Apr 2001 14:42:51 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Sender: fraser@slider References: <9ao1if$cq9$1@taliesin.netcom.net.uk> <3ACFC902.115624A1@mindspring.com> <86u23yszjo.fsf@acm.org> <86wv8sfwec.fsf@acm.org> <9b1iru$aqs$1@taliesin.netcom.net.uk> <3AD458AF.22279994@mida.se> X-Newsreader: Gnus v5.5/XEmacs 20.4 - "Emerald" X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:6789 Date: 2001-04-11T14:42:51-07:00 List-Id: Mats Karlssohn writes: > This is really the same issue as () vs. [] for arrays. I and many > other feel that, in the expresssion x := foo; knowing that foo is > a constant, a variable or a parameterless function, is just an > implementation detail. That's quite true. And let's not forget that this () for parameterless functions is what causes C++ code to be full of class C { int m_var; public int var() { return m_var; }}; I like Eiffel's way of doing it -- exported member variables are read only outside the class and are thus indistinguishable from access functions. Also, imagine this: type T is (A, B, C); X : T := A(); Ouch! Fraser.