comp.lang.ada
 help / color / mirror / Atom feed
* Strings as Parameters
@ 2004-10-04 23:11 Rick Santa-Cruz
  2004-10-05  0:20 ` Matthew Heaney
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rick Santa-Cruz @ 2004-10-04 23:11 UTC (permalink / 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 





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-05  1:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 23:11 Strings as Parameters Rick Santa-Cruz
2004-10-05  0:20 ` Matthew Heaney
2004-10-05  0:41 ` Jeffrey Carter
2004-10-05  1:21 ` Stephen Leake

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