From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e17c1684e13bd57b,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-22 14:55:21 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!feeder.qis.net!btnet-peer!btnet!nntp.news.xara.net!xara.net!gxn.net!server6.netnews.ja.net!server4.netnews.ja.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "Baldy" Newsgroups: comp.lang.ada Subject: Newbie - error with 'Limited Type' assignment X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: Date: Mon, 22 Jan 2001 22:56:09 -0000 NNTP-Posting-Host: 62.252.58.139 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 980204055 62.252.58.139 (Mon, 22 Jan 2001 22:54:15 GMT) NNTP-Posting-Date: Mon, 22 Jan 2001 22:54:15 GMT Organization: ntl Cablemodem News Service Xref: supernews.google.com comp.lang.ada:4339 Date: 2001-01-22T22:56:09+00:00 List-Id: 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