From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: On functions and access types.
Date: Thu, 27 Jun 2002 00:25:07 GMT
Date: 2002-06-27T00:25:07+00:00 [thread overview]
Message-ID: <wccu1np36vw.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: eFrS8.4786$Uu2.750@sccrnsc03
Caffeine Junky <nospam@hotmail.com> writes:
> Now the compiler tells me that I cannot assign to an 'in' parameter.
> However, as I understand it, a function can only take an 'in' parameter.
That's right. If you want a function to modify its argument,
you can use an access parameter, like "S: access Stack;",
and call it with Some_Stack'Access.
But in this case, it's better to use a procedure.
> Now, eventually I changed this to a procedure for the sake of expediancy.
That's the right solution.
- Bob
next prev parent reply other threads:[~2002-06-27 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-26 22:57 On functions and access types Caffeine Junky
2002-06-27 0:25 ` Robert A Duff [this message]
2002-06-27 2:33 ` Ted Dennison
2002-06-27 1:29 ` SteveD
-- strict thread matches above, loose matches on Subject: below --
2002-06-27 7:36 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox