From: Mehdi Saada <00120260a@gmail.com>
Subject: how to do things like procedure foo(A: string) is bar: string := A; begin; ...;end;
Date: Sat, 16 Dec 2017 12:56:42 -0800 (PST)
Date: 2017-12-16T12:56:42-08:00 [thread overview]
Message-ID: <6bedbdee-ca7f-4d2a-83f9-6cc9c53d21cb@googlegroups.com> (raw)
DATA being strings components of the records LEFT and RIGHT, is the expression (LEFT.DATA & RIGHT.DATA)'Range possible ?
I try to implement something like
procedure foo(A: string) is
bar: string := A;
begin
...
end;
but A'Length isn't known at compilation. In fact I want to use bar only like a macro, to avoid puting things like LEFT.DATA & RIGHT.DATA everywhere and not being able to use attributes (Range, length & co).
next reply other threads:[~2017-12-16 20:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-16 20:56 Mehdi Saada [this message]
2017-12-16 21:49 ` how to do things like procedure foo(A: string) is bar: string := A; begin; ...;end; 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
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