From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,80a7e32bed946eb9 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr" Subject: Re: access_to_constant as subprogram paramater Date: 1998/09/19 Message-ID: #1/1 X-Deja-AN: 392805103 References: <6u0pmf$rvk$1@nnrp1.dejanews.com> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Date: 1998-09-19T00:00:00+00:00 List-Id: nelson@blaze-net.com wrote in message <6u0pmf$rvk$1@nnrp1.dejanews.com>... Here's the way to do what you want: procedure Access_Parameter is Pathname : aliased constant String := "/a/b/c.adb"; -- Declared as constant in order to produce compilation error type Constant_String_Access_Type is access constant String; procedure Parse (Input : Constant_String_Access_Type) is -- -- Would like to declare this: -- procedure Parse (Input : access constant String) is -- as Parse never modifies the input string -- begin null; -- Parse a pathname string into components end Parse; begin Parse (Pathname'Access); end Access_Parameter; David C. Hoos, Sr.