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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eafb0c0f59b030c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.hanau.net!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Event mechanisms for GUI's Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <3egSg.208528$1i1.141541@attbi_s72> <1159338085.495558.286500@i42g2000cwa.googlegroups.com> <7s2dnaT_9fw5nobYnZ2dnUVZ_tOdnZ2d@megapath.net> <_AHSg.210879$1i1.191702@attbi_s72> <1160853954.468627.128210@m7g2000cwm.googlegroups.com> <1160879371.648453.23540@h48g2000cwc.googlegroups.com> <1161267729.431982.31510@f16g2000cwb.googlegroups.com> Date: Thu, 19 Oct 2006 17:04:52 +0200 Message-ID: <1dty961ouee7t.1rmz1fm6p38yi.dlg@40tude.net> NNTP-Posting-Date: 19 Oct 2006 17:04:52 CEST NNTP-Posting-Host: 27d373da.newsspool4.arcor-online.net X-Trace: DXC=fOn=SLgXbY;kUFX=Y?aLP;4IUKbPFX_0DNcfSJ;bb[5FCTGGVUmh?4N\HXHJ4e80>YlA_;H?hk=0 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7043 Date: 2006-10-19T17:04:52+02:00 List-Id: On 19 Oct 2006 07:22:09 -0700, Lucretia wrote: > But there are problems with this: > > 1) use of multiple interfaces just to provide 1 "event handler" over > the use of 1 listener interface which provides all "event handlers" > which are specified as null procedures so that the user can override > the ones (s)he is interested in. > > 2) the user may forget to do the test (the Set_Bit_Mask call). 3) You cannot provide a default implementation for events, when those handlers are interfaces. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de