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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d1c732147dd383f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-24 10:34:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Problems with assignment Date: 24 May 2002 13:19:17 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1022261175 7245 128.183.220.71 (24 May 2002 17:26:15 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 May 2002 17:26:15 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24663 Date: 2002-05-24T17:26:15+00:00 List-Id: "Andreas Lans" writes: > So, the prior problem is solved, but now a new one has come up. Im trying to > get the Get_Random_Female procedure to return a female to be stored in the > temp variable. In short it looks like this.When I try to compile this it > says: Left hand of assignment must not be limited type. Its about the > declaration temp:=Island.Get_Random_Female.Whats the problem?? The problem is that the variable 'temp' is of type 'Female', which is a limited type. You cannot assign objects of a limited type. One solution (which is really what you are asking for; the compiler told you the problem :), is to use an access type: type Female_Access is access all Female; On the other hand, I have not read your program in detail, so this may not be the correct approach. Female is a task type, which is by definition limited. Maybe you need an array of "Females", and return an index to one. Or an array of "Female_Access". Ask your professor which is better. -- -- Stephe