comp.lang.ada
 help / color / mirror / Atom feed
* ToString?
@ 2002-03-12 13:16 Nazgul
  2002-03-12 13:24 ` ToString? Peter Hermann
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Nazgul @ 2002-03-12 13:16 UTC (permalink / raw)


Is there something like Integer'ToString(xxx) that converts an integer to a
string ?

Thanks.







^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: ToString?
@ 2002-03-14  6:05 Christoph Grein
  2002-03-14 16:18 ` ToString? Jeffrey Carter
  0 siblings, 1 reply; 19+ messages in thread
From: Christoph Grein @ 2002-03-14  6:05 UTC (permalink / raw)


From: Jeffrey Carter <jeffrey.carter@boeing.com>

> > Ah, the '0' isn't a positive number thang!
>
> It's easy enough to test:
> 
> with Ada.Text_IO;
> use Ada.Text_IO
> procedure Is_Zero_Positive is
>    Zero : constant := 0;
> begin -- Is_Zero_Positive
>    if Zero in Positive then
>       Put_Line ("Zero is Positive");
>    else
>       Put_Line ("Zero is not Positive");
>    end if;
> end Is_Zero_Positive;
> 
> This puts "Zero is not Positive" to the standard output. QED.

You mean a test or a mathematical proof? For a test, this is OK.

For a proof, you have to prove first that Positive holds only
positive numbers :-)

Perhaps you also have to prove that the symbol 0 you use up there is really a 
representation of what you have in mind when speaking about the mathematical 
object called 0 :-)



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

end of thread, other threads:[~2002-04-06 22:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 13:16 ToString? Nazgul
2002-03-12 13:24 ` ToString? Peter Hermann
2002-03-12 13:25 ` ToString? Ingo Marks
2002-03-12 13:27 ` ToString? Larry Hazel
2002-03-12 13:30 ` ToString? Martin Dowie
2002-03-12 16:48   ` ToString? Jeffrey Carter
2002-03-13  8:38     ` ToString? Martin Dowie
2002-03-13 22:18       ` ToString? Jeffrey Carter
2002-03-14  0:36         ` ToString? Adrian Knoth
2002-03-15  4:58 ` Upping the ante (was): ToString? Kent Paul Dolan
2002-03-15  5:22   ` Jim Rogers
2002-04-04 23:21     ` Kent Paul Dolan
2002-04-05  5:09       ` Eric G. Miller
2002-04-05 19:45         ` Kent Paul Dolan
2002-04-06  4:07           ` Eric G. Miller
2002-04-06 22:23             ` Implied Programming contracts: " Kent Paul Dolan
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14  6:05 ToString? Christoph Grein
2002-03-14 16:18 ` ToString? Jeffrey Carter
2002-03-15 14:18   ` ToString? Ted Dennison

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