comp.lang.ada
 help / color / mirror / Atom feed
From: "Mattimus" <mattisgrat@yahoo.ca>
Subject: Help: Type not accessible
Date: Tue, 19 Mar 2002 08:58:40 -0500
Date: 2002-03-19T08:58:40-05:00	[thread overview]
Message-ID: <muHl8.37472$X2.358367@nnrp1.uunet.ca> (raw)

Ok guys here's the jist of what I have.

package Navs is

    type Nav is tagged
        record
            Position : Integer;
        end record;

    type Navpointer is access all Nav;

    function Getposition (Anav : in Nav) return Integer;
    procedure Setposition (Anav : in out Nav; Anint : in Integer);
end Navs;

with Navs;
use Navs;

with Navinterfaces;
use Navinterfaces;

with Displays;
use Displays;

with Ada.Text_Io;
use Ada.Text_Io;


procedure Main is

    Mynav : aliased Nav;

    Pointer_To_Nav : Navpointer;

 begin

    --create a pointer to the nav to give to the nav interface
    Pointer_To_Nav := Mynav'Access;  <--- THIS LINE WILL NOT COMPILE


It tells me that 'Mynav is not accessible from  access all nav'.
Can someone please help. I have no idea what to do here, or what is causing
it.

Thanks a lot guys.






             reply	other threads:[~2002-03-19 13:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 13:58 Mattimus [this message]
2002-03-19 14:36 ` Help: Type not accessible Stephen Leake
2002-03-19 15:08 ` Mattimus
2002-03-19 15:13 ` Vadim Godunko
  -- strict thread matches above, loose matches on Subject: below --
2002-03-19 14:45 Help: " Christoph Grein
2002-03-19 19:02 ` Stephen Leake
2002-03-20  5:52 Christoph Grein
replies disabled

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