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-Thread: 103376,37023471dc2e1934 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.germany.com!news.tu-darmstadt.de!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!news.uunet.fr!not-for-mail Message-ID: <449a432e$0$15869$bb6a4dc3@news.uunet.fr> From: Emmanuel Briot Subject: Re: Custom model in gtkada? Newsgroups: comp.lang.ada Date: Thu, 22 Jun 2006 09:16:22 +0200 References: <3ndpd7br1nn9$.vkcrts8e898z.dlg@40tude.net> <20060614210028.GA18024@ws.max.zp.ua> <44917d39$0$4495$9b4e6d93@newsread2.arcor-online.net> <44941be9$0$11065$9b4e6d93@newsread4.arcor-online.net> <14e2r2ftir9ok.i8u1axnplx11.dlg@40tude.net> User-Agent: KNode/0.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: lyon.act-europe.fr X-Trace: 1150960430 news.uunet.fr 15869 212.157.227.160:28002 X-Complaints-To: abuse@fr.uu.net Xref: g2news2.google.com comp.lang.ada:4897 Date: 2006-06-22T09:16:22+02:00 List-Id: Dmitry A. Kazakov wrote: > I would expect callbacks be primitive operations of a tagged type rather > than pointers. This is of course a design choice, and you can easily implement a small layer on top of GtkAda to do just that. The advantage with pointers is that you can add or remove callbacks during the life of a widget, which is harder to do with primitive operations where you need flags to know whether to react to the event or not. Also you can have multiple callbacks on the same signal, which, again, is harder to do with primitive operations. Emmanuel