comp.lang.ada
 help / color / mirror / Atom feed
From: WishList@2600.com (Technobabble)
Subject: Re: assigning record address using access, w/unconstrained array
Date: 1998/09/19
Date: 1998-09-19T00:00:00+00:00	[thread overview]
Message-ID: <WishList-1909981356340001@a11.phoenix-13.goodnet.com> (raw)
In-Reply-To: EzJsrB.AD1.0.-s@inmet.camb.inmet.com

Greetings Tucker,

Thanks !!! I'll catch on eventually. You're the best !!


> : ---------------------
> : --File: test_pkg.adb
> : package body test_pkg is
> 
> :   procedure my_range (This : in Object) is
> 
> ***>>>                         ^^ "in out" should solve your problem.
> 
> :   begin 
> :                 This.XYZ(1) := xyz5_array'ACCESS;  
> : --       rangexyz :=  This.XYZ(1)'RANGE;
> 
> :   end my_range;
> : end test_pkg;
> 
> : --------------------
> 
> : GNAT produces the following error after compiling test_pkg.adb:
> 
> : test_pkg.adb:18:17: assignment to "in" mode parameter not allowed
> 
> As well it should.  Just change the parameter mode to "in out" if you
> want the procedure to update its parameter.
> 
thanks,
Richmond
therionics@computer.org




  reply	other threads:[~1998-09-19  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-19  0:00 assigning record address using access, w/unconstrained array Technobabble
1998-09-19  0:00 ` Tucker Taft
1998-09-19  0:00   ` Technobabble [this message]
1998-09-20  0:00 ` dewarr
replies disabled

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