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.182.241.1 with SMTP id we1mr4666660obc.37.1407000146496; Sat, 02 Aug 2014 10:22:26 -0700 (PDT) X-Received: by 10.140.94.34 with SMTP id f31mr1014qge.11.1407000146464; Sat, 02 Aug 2014 10:22:26 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no12674345igc.0!news-out.google.com!b3ni5177qac.1!nntp.google.com!j15no4018236qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 2 Aug 2014 10:22:26 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.37.95.142; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 93.37.95.142 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <55c718c7-b4cd-43c7-ae66-fef3e514a47c@googlegroups.com> Subject: Re: trimming strings From: mockturtle Injection-Date: Sat, 02 Aug 2014 17:22:26 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:21409 Date: 2014-08-02T10:22:26-07:00 List-Id: On Saturday, August 2, 2014 3:10:16 PM UTC+2, ag...@drrob1.com wrote: > I am having a very difficult time understanding something. I am >=20 > trying to do this using gnat on Ubuntu 14.04 system: >=20 > with Ada.Strings; use Ada.Strings; > with Ada.Strings.Fixed; use Ada.Strings.Fixed; >=20 > subtype string255fixedtype is string (1.255); > inbuf : string255fixedtype; >=20 > BEGIN >=20 > inbuf :=3D Get_Line; > inbuf :=3D trim(inbuf,both); =20 >=20 > -- this does not work, error is both is not visible >=20 > No combination of ada.strings.fixed.both, or ada.strings.both got it > to be visible. As others said, a complete example would help us to help you. Anyway, I a= m going to do a wild guessing: did you maybe declared another "both" in yo= ur code? I do not have a compiler at hand and I cannot check, but if I rem= ember correctly in this case you get a "non visible" error because the two = symbols hide each other. Riccardo