comp.lang.ada
 help / color / mirror / Atom feed
From: defaultuserbr@yahoo.com
Subject: Re: Some help for a C++ guy
Date: 8 Apr 2005 14:18:53 -0700
Date: 2005-04-08T14:18:53-07:00	[thread overview]
Message-ID: <1112995133.659402.325960@z14g2000cwz.googlegroups.com> (raw)
In-Reply-To: <4YudnV8ju-IrccvfRVn-og@comcast.com>


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




  reply	other threads:[~2005-04-08 21:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07 22:14 Some help for a C++ guy defaultuserbr
2005-04-07 22:51 ` Ed Falis
2005-04-07 23:18   ` defaultuserbr
2005-04-07 23:32     ` Ed Falis
2005-04-08 15:41       ` defaultuserbr
2005-04-08  5:50     ` Simon Wright
2005-04-08 15:47       ` defaultuserbr
2005-04-08 17:49       ` defaultuserbr
2005-04-08 20:42         ` tmoran
2005-04-08 21:18           ` defaultuserbr [this message]
2005-04-08 20:54         ` defaultuserbr
2005-04-08 22:20           ` tmoran
2005-04-08 23:03             ` defaultuserbr
2005-04-09  0:19               ` tmoran
2005-04-09 15:17                 ` defaultuserbr
2005-04-08  4:43 ` tmoran
2005-04-08 15:55   ` defaultuserbr
2005-04-09 22:20     ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox