* entry references @ 1999-09-14 0:00 Ian Thomson 1999-09-14 0:00 ` Matthew Heaney 1999-09-14 0:00 ` Mark Lundquist 0 siblings, 2 replies; 3+ messages in thread From: Ian Thomson @ 1999-09-14 0:00 UTC (permalink / raw) Does anyone know how I can reference a protected entry? I am trying to write a generic package that will operate as an indirection to protected entries- and I can find no way of referncing the entry. I tried renaming the entry as a procedure, then passing this as a generic parameter, but you then get procedure- like blocking, which defeats the object. You also cannot declare access to subprogram types for entries. any ideas? thanks, ian ______________________________________________________ Ian Thomson it103@york.ac.uk -- www-users.york.ac.uk/~it103/ _____you don't need eyes to see - you need vision_____ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: entry references 1999-09-14 0:00 entry references Ian Thomson @ 1999-09-14 0:00 ` Matthew Heaney 1999-09-14 0:00 ` Mark Lundquist 1 sibling, 0 replies; 3+ messages in thread From: Matthew Heaney @ 1999-09-14 0:00 UTC (permalink / raw) In article <37DE6FC9.51FD00CE@york.ac.uk> , Ian Thomson <it103@york.ac.uk> wrote: > Does anyone know how I can reference a protected entry? I'm not sure what you mean by this question. Can you post a small snippet of code illustrating your problem? > I am trying to write a generic package that will operate as an indirection to > protected entries- and I can find no way of referencing the entry. Again, please provide a small bit of code to illustrate. > I tried renaming the entry as a procedure, then passing this as a generic > parameter, but you then get procedure- like blocking, which defeats the > object. I'm not sure what you mean by "defeats the object." Can you elaborate on this? (And post some code.) > You also cannot declare access to subprogram types for entries. Do you really need to? Can you point to a subprogram that calls the entry? > any ideas? thanks, It would be helpful if you could post the smallest amount of code that demonstrates your problem. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: entry references 1999-09-14 0:00 entry references Ian Thomson 1999-09-14 0:00 ` Matthew Heaney @ 1999-09-14 0:00 ` Mark Lundquist 1 sibling, 0 replies; 3+ messages in thread From: Mark Lundquist @ 1999-09-14 0:00 UTC (permalink / raw) Ian Thomson wrote: > Does anyone know how I can reference a protected entry? > > I am trying to write a generic package that will operate > as an indirection to protected entries- and I can find no > way of referncing the entry. > > I tried renaming the entry as a procedure, then passing > this as a generic parameter, but you then get procedure- > like blocking, which defeats the object. > I'm not sure what you mean by "procedure-like blocking". What is true is that when you rename the entry you lose its "entry-ness", so for instance you cannot call it in places where an entry call is required, like an asynchronous select, conditional entry call, etc. > You also cannot declare access to subprogram types for > entries. > Right, because they are not subprograms. > any ideas? thanks, > It sounds like you are wishing there were such a thing as a "generic formal entry" parameter. Is that the idea? Without knowing exactly what you're up to, it's hard to say (for instance, what kind of genericity are you trying to achieve?) One suggestion is that your protected type can have a discriminant, and that discriminant can be an access discriminant, and in particular it can be a classwide access discriminant. This allows your protected type in effect to serve as the root of a type hierarchy, even though protected types themselves can't be extended. If this ends up solving your problem, it may turn out that your package doesn't even have to be generic after all -- as I said before, it's hard to know without more detail... -- Mark Lundquist Senior Software Engineer Rational Software Development Solutions Business Unit UNIX Suites Group Aloha, OR, USA ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-09-14 0:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1999-09-14 0:00 entry references Ian Thomson 1999-09-14 0:00 ` Matthew Heaney 1999-09-14 0:00 ` Mark Lundquist
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox