TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Stephen Leake <[log in to unmask]>
Mon, 20 May 2002 11:29:05 -0400
text/plain (20 lines)
"C. Daniel Cooper" <[log in to unmask]> writes:

> a) single 'Access: The "proper" thing to do is a technical tweak, as
> described at <>
> Define a single 'Access constant along with each callback subprogram
> declaration, and use that constant for all references.

This certainly sounds right to me. This is a light-weight solution,
compared to polymorphism or tasking, as others have proposed.

> This isn't a bad solution, but it presumes the subscribers know how
> the publisher is implemented (or will evolve).

I don't follow this objection. All the subscriber needs to know is the
profile of the callback; what else can change that affects the
declaration of the single 'access constant?

-- Stephe