comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: how to do things like procedure foo(A: string) is bar: string := A; begin; ...;end;
Date: Mon, 18 Dec 2017 09:31:57 -0800 (PST)
Date: 2017-12-18T09:31:57-08:00	[thread overview]
Message-ID: <2eb18a83-fd47-4200-81cb-84c3b4b242ad@googlegroups.com> (raw)
In-Reply-To: <dceffe89-10a1-4a76-b0a3-767e4afcd1a1@googlegroups.com>

On Monday, December 18, 2017 at 7:34:50 AM UTC-8, Mehdi Saada wrote:
> I got it pretty early (was clear in the course) that array, and strings for the matter, can have arbitrary bounds. So with unconstrained formal parameters I always use 'LENGHT, 'First and 'Last, and no 'Range in for loop.

It must be your typo of 'Length. Otherwise, the compiler will reject your code for sure.

Anh Vo


  reply	other threads:[~2017-12-18 17:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-16 20:56 how to do things like procedure foo(A: string) is bar: string := A; begin; ...;end; Mehdi Saada
2017-12-16 21:49 ` Jeffrey R. Carter
2017-12-17 12:40   ` Mehdi Saada
2017-12-17 13:25     ` Jere
2017-12-17 13:49       ` Jere
2017-12-17 13:51     ` Jeffrey R. Carter
2017-12-18 22:22     ` Randy Brukardt
2017-12-18  6:39 ` Robert Eachus
2017-12-18 15:34   ` Mehdi Saada
2017-12-18 17:31     ` Anh Vo [this message]
2017-12-18 21:14     ` Robert Eachus
2017-12-19 22:52   ` Robert Eachus
replies disabled

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