comp.lang.ada
 help / color / mirror / Atom feed
From: "Grein, Christoph" <christoph.grein@eurocopter.com>
Subject: Re: On functions and access types.
Date: Thu, 27 Jun 2002 09:36:32 +0200 (MET DST)
Date: 2002-06-27T09:36:32+02:00	[thread overview]
Message-ID: <mailman.1025163602.6633.comp.lang.ada@ada.eu.org> (raw)

> function Pop(S : in Stack) return Item is
> 	X : Item;
> begin
> 	X := S.Value
> 	S := S.Next;
> 	return X;
> end Pop;
> 
> Now the compiler tells me that I cannot assign to an 'in' parameter.

Others have commented on 'in'. So if you change this into a procedure, watch out 
for garbage you're going to produce:

  S := S.Next;

Hint: Unchecked_Deallocation



             reply	other threads:[~2002-06-27  7:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27  7:36 Grein, Christoph [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-26 22:57 On functions and access types Caffeine Junky
2002-06-27  0:25 ` Robert A Duff
2002-06-27  2:33   ` Ted Dennison
2002-06-27  1:29 ` SteveD
replies disabled

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