"slos" wrote in message news:d0b830a1-19c8-462e-b1c8-a2b19e470674@googlegroups.com... Le jeudi 7 mai 2015 21:09:33 UTC+2, Randy Brukardt a écrit : ... > If I remember correctly, I should have verified before posting but it's > already > late, in C++ one can have protected members which can be used by friends. > I can't see in Ada such thing like protected stuff and friends. Maybe > there is ? Ada uses child packages for that sort of functionality; to be a "friend" in Ada, a package has to be a child. Often, a parent and set of children is referred to as a "subsystem". [Private packages also can be part of a subsystem, that's where they're useful.] Unrestricted use of friends appeared to lead to madness (at a minimum, visibility madness), where dependencies go all which ways. Ada limits such dependencies to a single subsystem. (Generally, one wants to minimize dependences.) ... >I am quite happy with the child package solution exposed here by Simon >but then that has disturbed my packages hierarchy... ;-) Yup. There's no free lunch. ;-) Randy.