Jean-Pierre Rosen wrote: > James Alan Farrell a �crit : > >> Given a declaration, is there an easy way to get a list of pragmas >> relating to that declaration? >> >> ie: >> >> procedure Foo; >> pragma Export(C, Foo, "foo"); >> >> where Foo is declared in a long list of declarations. I have the decl >> list and the declaration of Foo. Is there any way I can get the >> pragma directly from Foo, rather than searching the long list of >> declarations and seeing if any pragma relates to Foo? >> > Asis.Elements.Corresponding_Pragmas > Ah, I should have been more clear - apologies. In ASIS for gnat 3.15p, Asis.Elements.Corresponding_Pragmas raises an exception "unimplemented." Given that situation, is there a reasonably elegant way to do this? Will this function be implemented in the future? Thank you for your reply, JAF