comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Optimising string handling in application
Date: Sat, 05 Apr 2003 03:28:05 GMT
Date: 2003-04-05T03:28:05+00:00	[thread overview]
Message-ID: <93sja.331264$F1.54556@sccrnsc04> (raw)
In-Reply-To: 1049453076.981330@edh3

>   Replace_Callsign_In_Msg
>     (Msg             => Loc_Insert_Msg.Data(2..Loc_Insert_Msg.Data'Last),
>Can I assume that 'First of Msg inside Replace_Callsign_In_Msg =1?

  It depends on whether the formal parameter is constrained or
unconstrained.  This program prints " 13 3"

with ada.text_io;
procedure testp is
  subtype teens is integer range 13 .. 19;
  subtype constrained is string(teens);
  x : string(3 .. 9);
  procedure p(c : constrained; u : string) is
  begin
    ada.text_io.put_line(integer'image(c'first) & integer'image(u'first));
  end p;
begin
  p(x,x);
end testp;



  reply	other threads:[~2003-04-05  3:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-01 11:54 Optimising string handling in application Frode Tenneboe
2003-04-01 18:52 ` Jeffrey Carter
2003-04-02  3:17 ` Steve
2003-04-02  4:10 ` tmoran
2003-04-02  7:15   ` Frode Tenneboe
2003-04-02 18:23     ` tmoran
2003-04-04 10:13       ` Frode Tenneboe
2003-04-04 13:26         ` Preben Randhol
2003-04-04 14:42           ` Frode Tenneboe
2003-04-04 21:48             ` Warren W. Gay VE3WWG
2003-04-05  7:24               ` Pascal Obry
2003-04-04 14:08         ` Frank J. Lhota
2003-04-04 15:26           ` Robert Spooner
2003-04-04 21:49             ` Warren W. Gay VE3WWG
2003-04-04 17:43         ` tmoran
2003-04-04 21:42           ` Frode Tennebø
2003-04-02 19:03     ` tmoran
2003-04-04 10:44       ` Frode Tenneboe
2003-04-05  3:28         ` tmoran [this message]
2003-04-05  0:08     ` Jeffrey Carter
replies disabled

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