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.8 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,17d1c9035ae1a195 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Tue, 22 Mar 2005 21:11:19 +0100 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: is something wrong with is_subset?! References: <1111520392.138015.189550@f14g2000cwb.googlegroups.com> In-Reply-To: <1111520392.138015.189550@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42407b30$0$9217$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 22 Mar 2005 21:08:16 MET NNTP-Posting-Host: d11086ea.newsread4.arcor-online.net X-Trace: DXC=R>P53[iiX[8g[50F7T5IO2 X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9753 Date: 2005-03-22T21:08:16+01:00 List-Id: spambox@volja.net wrote: > Hello. Can anyone explain why all of the following yield "FALSE"? > > with ada.strings.maps; use ada.strings.maps; > with ada.text_io; use ada.text_io; > procedure subset is > begin > put_line(is_subset(to_set("foo"), to_set("foo"))'img); > put_line(is_subset(to_set("foo"), to_set("bar"))'img); > put_line(is_subset(to_set("foobar"), to_set("bar"))'img); > put_line(is_subset(to_set("foo"), to_set("foobar"))'img); > end subset; I get TRUE and FALSE twice. Which compiler + version are you using? (GNAT, obviously, by the nonstandard 'img) Georg