comp.lang.ada
 help / color / mirror / Atom feed
From: "Rick Santa-Cruz" <rick_santa_cruz75@msn.com>
Subject: Strings as Parameters
Date: Tue, 5 Oct 2004 01:11:42 +0200
Date: 2004-10-05T01:11:42+02:00	[thread overview]
Message-ID: <cjslbv$tb4$01$1@news.t-online.com> (raw)

Hi,

I really have a super easy question:

If in a subprogram I wanna use a variable of type String then I always have 
to specify, how long this String will be... for example the following way:
procedure Main is
    S: String(1..10);
begin
...
end Main;

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?

Thanks in advance,
Rick 





             reply	other threads:[~2004-10-04 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 23:11 Rick Santa-Cruz [this message]
2004-10-05  0:20 ` Strings as Parameters Matthew Heaney
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