comp.lang.ada
 help / color / mirror / Atom feed
* Inheritance question...
@ 1997-03-23  0:00 Marc Bejerano
  1997-03-24  0:00 ` Jerome Desquilbet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marc Bejerano @ 1997-03-23  0:00 UTC (permalink / raw)



I have a package called foo...

package foo is
  type bar is tagged private;
  type bar1 is new bar with private;

  .
  .
  .

private
  type bar is tagged record
    v: integer;
  end record;

  type bar1 is new bar with record
    vv: character;
  end record;
end foo;

when I try to create a descendent type in my main procedure I get:

  "type extension at deeper accessibility level than parent"

here's my "simplified" main procedure:

with foo; use foo;

procedure foofoo is
  type my_bar is new bar1 with record
    s: string(1..128);
  end record;
begin
.
.
.
end foofoo;

what am I doing wrong?

TIA, Marc




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

end of thread, other threads:[~1997-03-25  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-23  0:00 Inheritance question Marc Bejerano
1997-03-24  0:00 ` Jerome Desquilbet
1997-03-24  0:00 ` Robert A Duff
1997-03-25  0:00 ` Tucker Taft

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