comp.lang.ada
 help / color / mirror / Atom feed
From: "Baldy" <mike@delfan.co.uk>
Subject: Newbie - error with 'Limited Type' assignment
Date: Mon, 22 Jan 2001 22:56:09 -0000
Date: 2001-01-22T22:56:09+00:00	[thread overview]
Message-ID: <rS2b6.10769$4k4.274074@news2-win.server.ntlworld.com> (raw)

Hi All,

I hope someone here can help me out? this ADA stuff is new to me.

I'm trying to pass a FILE_TYPE reference to a task within a seperate package
from the main program. The compiler, AdaGIDE, says this is not allowed as it
is a limited type. How can I do this correctly.

Here's a snippet of the code i'm using:

package body PhonePkg is
    task body phone_line is
        This_Simulation_Data : FILE_TYPE;
    begin
        accept Start_Lines(Simulation_Data : in FILE_TYPE)
            This_Simulation_Data := Simulation_Data; << error here
        end Start_Lines;
    end phone_line;
end PhonePkg;


Any help will be greatly appreciated

Thanks,
Mike
Mike@Delfan.co.uk











             reply	other threads:[~2001-01-22 22:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-22 22:56 Baldy [this message]
2001-01-22 23:50 ` Newbie - error with 'Limited Type' assignment tmoran
replies disabled

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