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,ac39a12d5faf5b14 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-23 17:17:15 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Wish List : Ada95 to FOX X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3CC5F5B0.DBC6A6B8@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3CB46975.90408@snafu.de> <5ee5b646.0204121930.64733eeb@posting.google.com> <5wTt8.15598$C21.3515342@news6-win.server.ntlworld.com> <5ee5b646.0204130620.114953ae@posting.google.com> <4519e058.0204180615.150e4bef@posting.google.com> <357f0f4aab2ac8ef39234c96f0ab6311.48257@mygate.mailgate.org> <3CC5997E.4 Mime-Version: 1.0 Date: Wed, 24 Apr 2002 00:00:48 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:23026 Date: 2002-04-24T00:00:48+00:00 List-Id: "Warren W. Gay VE3WWG" wrote: > > One area that has traditionally been a sore point in Ada and GUIs is > the client_data parameter in callbacks. Gtk kind of hacks around this, > but I'd like to see a more perfect (Ada95) solution to this problem. I consider callbacks themselves a sore point. Callbacks are a hack to handle the inherent concurrency of a windowing system in a sequential language such as C. The natural approach is to associate a concurrent blocking queue of events with each window; the application has a task per window obtaining events from this queue and deciding what to do with them. -- Jeffrey Carter