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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83a22b00dc8daff3 X-Google-Attributes: gid103376,public From: Ray Blaak Subject: Re: Generic Instances Scope control ??? Date: 2000/02/23 Message-ID: #1/1 X-Deja-AN: 588913051 Sender: blaak@LANGLEY References: X-Complaints-To: news@bctel.net X-Trace: news.bc.tac.net 951327064 209.53.149.65 (Wed, 23 Feb 2000 09:31:04 PST) Organization: The Transcend NNTP-Posting-Date: Wed, 23 Feb 2000 09:31:04 PST Newsgroups: comp.lang.ada Date: 2000-02-23T00:00:00+00:00 List-Id: "Vladimir Olensky" writes: > Though what you suggest simplifies the initial problem > ( reducing the number of visible details to only one) but it > does not solve the essence of the problem. Client still > need to make one generic package instance per each > declared controller object. > > The point is to hide all that completely from the client. Your real problem is the need to associate the controller object with the specific API call. Having a different routine for each object is not really what is desired, since one needs to associate the specific controller with a specific routine (which is why you were doing the generic instantiations). Most languages, however, cannot do this, so most (all?) asynchronous environments provide some sort of handle/context mechanism so that you can associate completions with their initial invocations. Otherwise one cannot know which completions match to which calls. The OS interface really needs to allow you to give the controller (or a pointer to it) as part of the call, so that it can be used as data during the callback. Once you have this, then Controller_Type does not even need to inherit from Limited_Controlled at all, or even a tagged type, but can be a simple record. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, blaak@infomatch.com The Rhythm has my soul.