comp.lang.ada
 help / color / mirror / Atom feed
* Object.Operation and child package
@ 2008-06-25 17:41 pascal.malaise
  2008-06-25 18:40 ` Ludovic Brenta
  2008-06-25 18:51 ` Jeffrey R. Carter
  0 siblings, 2 replies; 5+ messages in thread
From: pascal.malaise @ 2008-06-25 17:41 UTC (permalink / raw)


Hi Ada05 experts,

Is it normal to reject compilation of Object.Operation notation when
operation is in a child package:

package Pack is
  type Typ is tagged null record;
  procedure Proc1 (Var : in Typ);
end Pack;

package Pack.Sub is
  procedure Proc2 (Var : in Typ);
end Pack.Sub;

with Pack.Sub;
procedure Proc is
  Obj : Pack.Typ;
begin
  Obj.Proc1;
  Obj.Proc2;
end Proc;

The second call does not compile (with gnat):
proc.adb:6:04: no selector "Proc2" for type "Typ" defined at pack.ads:
3



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-26  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-25 17:41 Object.Operation and child package pascal.malaise
2008-06-25 18:40 ` Ludovic Brenta
2008-06-25 19:03   ` Adam Beneschan
2008-06-26  5:56     ` pascal.malaise
2008-06-25 18:51 ` Jeffrey R. Carter

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