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,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How come Ada isn't more popular? 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: <1169636785.504223.139630@j27g2000cwj.googlegroups.com> <45b8361a_5@news.bluewin.ch> <3pejpgfbki.fsf@hod.lan.m-e-leypold.de> Date: Tue, 6 Feb 2007 18:40:40 +0100 Message-ID: NNTP-Posting-Date: 06 Feb 2007 18:40:35 CET NNTP-Posting-Host: 4d72aa7e.newsspool1.arcor-online.net X-Trace: DXC=CePZA0;9=SdFXUDVUnEXQmic==]BZ:afn4Fo<]lROoRa^YC2XCjHcbiWXF>HG;jMmcDNcfSJ;bb[eIRnRBaCd On Tue, 06 Feb 2007 16:44:17 +0100, Markus E Leypold wrote: > Maciej Sobczak writes: > >> Sure. But for the sake of discussion completeness, you might wish to >> throw an example of a situation where scoped lifetime will not make it. > > Model-View-Controller in GUIs. Especially trying to adapt that to GTKAda. I am not sure what you mean, but 1. GTK+ uses reference counting. GtkAda just follows it in that respect. So all GtkAda interface objects are access to class-wide record. These objects are scoped. Because GtkAda is thin bindings its objects are not controlled (neither they are in GTK+). It would be quite easy to make them controlled and perform Unref upon Finalization. 2. MVC tree view is not different in that respect and does not impose any additional difficulties except usual awkward interfacing with C. You can find custom tree view models for GtkAda here: http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#2.1 and custom cell renderers here: http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#2.3 >> OK, I accept the word "peculiar". I only oppose "quite a clean >> concept" in your previous post. :-) > > Tha Ada OO way. 'Controlled' is just the logical consequence and on > top of tagged types quite clean. Controlled is a hack. It is the logical consequence of an apparent desire to leave this issue open for future language extensions. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de