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,629fb94ebc84f06a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 08:03:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Difficult to describe problem Date: 20 Jun 2002 10:56:43 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D11C7BA.8040504@uk.thalesgroup.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1024585463 12195 128.183.220.71 (20 Jun 2002 15:04:23 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 20 Jun 2002 15:04:23 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:26490 Date: 2002-06-20T15:04:23+00:00 List-Id: Nige writes: > Hi - Sorry about the ambiguous title of this post, but it's hard to > sum up the problem. > > One suggestion is to use GtkAda; it already solves this problem. But if you are doing this to learn how it is done, here are some other ideas. Place the event loop task outside both generics, and pass a pointer to it in the generic formal parameters. Use a simple procedure for the event loop, not a task. Then the procedure can be called at any point to get a nested event loop. That gives you modal dialog boxes, for example. -- -- Stephe