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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: type conversion Date: Sat, 11 Oct 2014 20:45:03 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <8d412a6d-5589-4601-a7f8-5bb6d1b8850f@googlegroups.com> <8ab202f6-82a0-46f8-8e3f-3b7b54699102@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 12 Oct 2014 03:45:03 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="206f88a41f45fc94d25d07d064d738e2"; logging-data="20304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192tzjPYIWUbKvAEzEskCi7WjxpRkzIfu4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: <8ab202f6-82a0-46f8-8e3f-3b7b54699102@googlegroups.com> Cancel-Lock: sha1:1En5GqYCiFFO8njSFl7Y+QMwa8o= Xref: number.nntp.giganews.com comp.lang.ada:189673 Date: 2014-10-11T20:45:03-07:00 List-Id: On 10/11/2014 05:38 PM, compguy45@gmail.com wrote: > myFunction(Integer'Value(a(1))); > > gives compiler error > > expected type "Standard.String" > found type "Standard.Integer" > compilation error That at least confirms that A (1) is of type Integer. Integer'Value obviously won't work here since it takes a String, as the error msg indicates. I was interested in the error msg for the case that looks correct, using Integer'Image. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05