comp.lang.ada
 help / color / mirror / Atom feed
From: "Jay Quinn" <jay_r_quinn@_NOSPAM_raytheon.com>
Subject: Re: Problems with assignment
Date: Fri, 24 May 2002 13:44:41 -0400
Date: 2002-05-24T13:44:41-04:00	[thread overview]
Message-ID: <f_uH8.999$c6.419@bos-service2.ext.raytheon.com> (raw)
In-Reply-To: sNtH8.39758$n4.8847077@newsc.telia.net


"Andreas Lans" <b99andla@student.his.se> wrote in message
news:sNtH8.39758$n4.8847077@newsc.telia.net...
> 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??
>
> temp : Female;
>
> temp := Island.Get_Random_Female;
>
> entry Get_Random_Female(Female : out Server_P)
>
> when Pairs <= 100 is
>
> begin
>
> Female := Females(pairs);
>
> return;
>
> end Get_Random_Female;
>
> When I try this I get the following errors:
>
> Left hand of assignment must not be limited type
>
> Accept statement cannot return value

Here's a hint:

Are you calling a procedure or a function?  How are values returned when
calling a procedure?  How are values returned when calling a function?


--
Jay






  parent reply	other threads:[~2002-05-24 17:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24 16:22 Problems with assignment Andreas Lans
2002-05-24 17:19 ` Stephen Leake
2002-05-24 17:44 ` Jay Quinn [this message]
2002-05-24 18:15 ` Preben Randhol
replies disabled

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