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: fac41,b2bad1e85ca20475 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,5b3c19b1631bb558 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-31 06:31:19 PST From: "Tom Hargraves" Newsgroups: comp.lang.eiffel,comp.lang.ada References: <39DCB9E3.EAE8F426@ftw.rsc.raytheon.com> <39F9FCCE.D6719C6F@ftw.rsc.raytheon.com> <1c9kvs4uvj4ofd46f7a8vq0pju596iu2gr@4ax.com> Subject: Re: The best thing/greatest feature summary Date: Tue, 31 Oct 2000 06:44:20 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: van-port61.imag.net X-Original-NNTP-Posting-Host: van-port61.imag.net Message-ID: <39fed7b6@rsl2.rslnet.net> X-Trace: 31 Oct 2000 06:31:18 -0800, van-port61.imag.net Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone.bc.net!rsl2.rslnet.net!van-port61.imag.net Xref: supernews.google.com comp.lang.eiffel:935 comp.lang.ada:1657 Date: 2000-10-31T06:44:20-08:00 List-Id: I'd like to agree with Lothar Re... "Lothar Scholz" wrote in message > Let > > X := Eiffel > Y := Java > > than the wish is > > Introspection, e.g. java.lang.reflexion (i think that was the > package) > > -------------------------- Let X := Ada Y := Java then the wish is to add java.lang.reflect 'style' routines to the ada language Here's a simple example where I'd find it useful: Quite often in user written Ada error handling packages, it is nice to be able to increase the detail in the error message, and be able to print or log the name of the routine or class in which it occured. A 'debug' mode so to speak. In ada I've seen this done by declaring constant strings which match (at the time of writing) the text to be displayed or logged. However there is nothing to link the content of these strings to the items they refer, so during the life of an application mismatches can occur. java.lang.reflect has getName, getDeclaringClass, to name but two. OK, at first sight, it won't be THE Best/Greatest feature of the language, but small practical improvements do help to popularise a language. PS. Maybe there is an equivalent 'Name attribute for a routine, or 'Parent_Class_Name attribute, which I've not been able to find. Please advise!