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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,146ef816afa699d1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.27.230 with SMTP id w6mr2487174pbg.3.1318938453368; Tue, 18 Oct 2011 04:47:33 -0700 (PDT) Path: d5ni26788pbc.0!nntp.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!xlned.com!feeder5.xlned.com!feed.xsnews.nl!border-2.ams.xsnews.nl!upload-2.xsnews.nl!10.10.60.2.MISMATCH!frontend-F10-02.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada References: <4e9a9a6d$0$3238$703f8584@news.kpn.nl> <9fvo6aF3d6U1@mid.individual.net> <4e9ad365$0$3267$703f8584@news.kpn.nl> <9g02plFrnlU1@mid.individual.net> <4e9bdbc7$0$3240$703f8584@news.kpn.nl> <9g3f3kFfr7U1@mid.individual.net> In-Reply-To: <9g3f3kFfr7U1@mid.individual.net> Subject: Re: Length of unbounded_string. Date: Tue, 18 Oct 2011 13:47:15 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Message-ID: <4e9d6722$0$3244$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1318938403 news.kpn.nl 3244 77.168.179.107@kpn/77.168.179.107:52647 Xref: news2.google.com comp.lang.ada:14044 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Date: 2011-10-18T13:47:15+02:00 List-Id: The program I am writing is a window oriented program. I am using GTKADA for the windows. When I write the string to the window it also misses the comma. Also further on in the program before writing to the window I check for the comma but the function I need to do is not performed so that is another reason why I think the comma is not present. "Niklas Holsti" schreef in bericht news:9g3f3kFfr7U1@mid.individual.net... On 11-10-17 09:39 , ldries46 wrote: > I have to strings I want to concatenate with a space in between. The > first (str) ends with a ','. > The output seems to be a concatenation where the ',' is missing. > A can see with the debugging facilities that before the concatenation > there is a ',' and after the concatenation depending on the type of > facility I use the comma is present (debug\print) or is not > (debug\display). And what happens if you simply print it with Ada.Text_IO? In my experience, gdb sometimes (well, rather often) prints complex Ada structures incorrectly or incompletely. > The last one is consistent with the display of the line in a gtk window. > For further use I need that comma, but I cannot add it explicitly > because as can beseen in the code I can reach rhat code also in some > other cases. Of course you could divide the code inte more cases, separating the comma case from the other cases. > > L. Dries > "Niklas Holsti" schreef in bericht news:9g02plFrnlU1@mid.individual.net... > > On 11-10-16 14:52 , ldries46 wrote: >> Sorry I just thought to simplify the problem but did that the wrong way >> my real problem is in the following code: >> >> ch := Element(str, len); >> if ch = ',' or (ch /= ';' and ch /= '{' and ch /= '}') then >> nr := nr + 1; >> str := str & " " & Next_Line; That code is incomplete. Where is the "end if"? If you want more help, please try to make a small, self-contained example in which the problem occurs, and show the whole code. >> >> where in the first line >> print str.reference.data >> $24 = "static void gtk_print_job_set_property (GObject *object", ',' Why is gdb speaking of GObject? I tought "str" was mean to be Ada.Strings.Unbounded.Unbounded_String, not some Gtk type. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .