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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,413069df09dfed26,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: conradwt@runbox.com Newsgroups: comp.lang.ada Subject: Converting Date: 28 Dec 2004 11:01:21 -0800 Organization: http://groups.google.com Message-ID: <1104260481.548435.238280@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 130.76.64.14 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1104260485 20284 127.0.0.1 (28 Dec 2004 19:01:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 28 Dec 2004 19:01:25 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=130.76.64.14; posting-account=2cgjjBMAAABgvdnIs0P9Xl7xUt0Ov5d9TxVz2CChb4Lc4MXNcZuFCw Xref: g2news1.google.com comp.lang.ada:7269 Date: 2004-12-28T11:01:21-08:00 List-Id: Hi, I was wondering, could someone tell me the best way to convert s string literal to a subtype. For example, subtype A_Type.String is Standard.String; subtype B_Type_String is A_Type.String; Now, I would like to convert a string literal to B_Type_String. BTW, the method that I'm calling requires the type B_Type_String. Last but least, I using the most recent version of gnat to do the compile. If anyone has any ideas as to the best way to resolve this issue and reducing the number of code changes, I would be most appreciative. Thanks in advance, -Conrad