comp.lang.ada
 help / color / mirror / Atom feed
* is something wrong with is_subset?!
@ 2005-03-22 19:39 spambox
  2005-03-22 20:03 ` Ludovic Brenta
  2005-03-22 20:11 ` Georg Bauhaus
  0 siblings, 2 replies; 3+ messages in thread
From: spambox @ 2005-03-22 19:39 UTC (permalink / raw)


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;

andrej

--
http://sonet.homelinux.net




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-22 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-22 19:39 is something wrong with is_subset?! spambox
2005-03-22 20:03 ` Ludovic Brenta
2005-03-22 20:11 ` Georg Bauhaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox