comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Strings as Parameters
Date: Tue, 05 Oct 2004 00:20:32 GMT
Date: 2004-10-05T00:20:32+00:00	[thread overview]
Message-ID: <u8yalzyqd.fsf@earthlink.net> (raw)
In-Reply-To: cjslbv$tb4$01$1@news.t-online.com

"Rick Santa-Cruz" <rick_santa_cruz75@msn.com> writes:

> But if I use a String as a Parameter of a function or procedure I don't have 
> to specify the range. That means I can just write a procedure like this:
> 
> procedure Test_It(S: String) is
> begin
> ...
> end Test_It;
> 
> What is the technical detail behind this? And why is such possible?

Because some extra information, called a "dope vector", is passed in the
call.  The dope vector describes the index values of the array object
passed as the parameter.  That's how how the called operation knows the
index constraints (and the length) of the array object.




  reply	other threads:[~2004-10-05  0:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 23:11 Strings as Parameters Rick Santa-Cruz
2004-10-05  0:20 ` Matthew Heaney [this message]
2004-10-05  0:41 ` Jeffrey Carter
2004-10-05  1:21 ` Stephen Leake
replies disabled

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