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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,740e91341085efe3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: defaultuserbr@yahoo.com Newsgroups: comp.lang.ada Subject: Re: Some help for a C++ guy Date: 8 Apr 2005 14:18:53 -0700 Organization: http://groups.google.com Message-ID: <1112995133.659402.325960@z14g2000cwz.googlegroups.com> References: <1112982557.068751.125740@o13g2000cwo.googlegroups.com> <4YudnV8ju-IrccvfRVn-og@comcast.com> NNTP-Posting-Host: 130.76.96.17 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1112995139 18369 127.0.0.1 (8 Apr 2005 21:18:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Apr 2005 21:18:59 +0000 (UTC) In-Reply-To: <4YudnV8ju-IrccvfRVn-og@comcast.com> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=130.76.96.17; posting-account=jWLFKg0AAAA9UYjCwxeOEw3zdPk7tNz5 Xref: g2news1.google.com comp.lang.ada:10355 Date: 2005-04-08T14:18:53-07:00 List-Id: tmo...@acm.org wrote: > > Handlers : Array (0..1) of Message_Handler.Handler; > > ... > > Callbacks := Handlers(0).Num_Message_Callbacks; > In Ada 95 you would say > Callbacks := Num_Message_Callbacks(Handler(0)); > ie, you pass the (tagged) parameter as a parameter, not as a prefix. Which I gather requires a change in the function's signature. That's not a big deal for that one, but the callback is another matter. > (The prefix form will apparently be allowed by the upcoming revision.) > With the generic version you clearly did not have inheritance, so do > want to add it now? You must be planning some significant architectural > changes. Why is a Handler a tagged record rather than an untagged one? Yes, that's true. I was thinking about inheritance because I may want different message handlers for different message types. But it's not essential. I'm not too optimistic about this even working, due to the problem (I think) with the callback signature. Brian