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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b5b3c67aa2a73fe X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Easy question about Character manipulation Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> Date: Mon, 29 Jan 2007 21:17:19 +0100 Message-ID: <1d5n0ksoz75yy.3t2hhxjr35fq$.dlg@40tude.net> NNTP-Posting-Date: 29 Jan 2007 21:17:15 CET NNTP-Posting-Host: 3d9a5567.newsspool2.arcor-online.net X-Trace: DXC=65Xmf:4F6ogFXUDVUnEXQmA9EHlD;3Ycb4Fo<]lROoRaFl8W>\BH3Ybe_KGaoFYJ?mDNcfSJ;bb[eIRnRBaCd On 29 Jan 2007 12:01:00 -0800, mark wrote: > I am quite newbie to ada. I have declared something like that: > size: Integer := 9; > emptySpaces : array (0..size) of Character := "0123456789"; > textLine : array (0..size * 3) of Character; (must be (size+1)*3-1. Indexing from 0 is an evil thing, trust me! (:-)) > Now I would like to have the possibility to initialize textLine > variable, but when I write: > textLine := "9876543210" & emptySpaces & "9876543210"; > > I got an error 'expected type of textLine' ,'found type od > emptySpacs...'. I know it is connected with very deep contstaint > checks Yes, emptySpaces and textLine have different types. > but have no idea how I could avoid that. Why didn't you use: Empty_Spaces : String := "0123456789"; Text_Line : String := "9876543210" & Empty_Spaces & "9876543210"; > Could you tell me how can I make it work?!? Probably yes, if you tell us a bit more about the problem you are trying to solve. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de