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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.121.42 with SMTP id lh10mr4982588pab.26.1413071800584; Sat, 11 Oct 2014 16:56:40 -0700 (PDT) X-Received: by 10.182.70.39 with SMTP id j7mr78224obu.1.1413071800393; Sat, 11 Oct 2014 16:56:40 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!h18no4822404igc.0!news-out.google.com!rp1ni27119igb.0!nntp.google.com!uq10no8912176igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Oct 2014 16:56:40 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.36.114.177; posting-account=39pqWgoAAADkep0zRfYwywOXjRBV2-ic NNTP-Posting-Host: 24.36.114.177 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8d412a6d-5589-4601-a7f8-5bb6d1b8850f@googlegroups.com> Subject: type conversion From: compguy45@gmail.com Injection-Date: Sat, 11 Oct 2014 23:56:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:189662 Date: 2014-10-11T16:56:40-07:00 List-Id: I have function... myFunction that given string returns array of integers....lets call that array a I have another function myOtherFunction that takes string as parameter....just for simplicity i am trying to do following.... myFunction(Integer'Image(a(1))); -- compiler error I tried also myFunction(Integer'Value(a(1))); -- error again I know in other languages you could do var $d = String($someInt); Obviously Ada can do same but online I was able to find only 2 solutions above but none worked.