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.2 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Wed, 09 Feb 2011 23:41:32 +0100 Message-ID: References: <4d52d7d9$0$18057$882e7ee2@usenet-news.net> <141301266d6fda6148bb1b1a7523c20f@remailer.paranoici.org> <4d53168e$0$18057$882e7ee2@usenet-news.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: individual.net 1i6nldU+1caxZUrphww/TAEV9RMXv4zjAUmdiXMgeaayQ3TGCx Cancel-Lock: sha1:XxPuq9qcj7jjVJ4Q/MH/Ew9kBrk= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news1.google.com comp.lang.ada:17185 Date: 2011-02-09T23:41:32+01:00 List-Id: Hyman Rosen wrote: > Function SumTo( N : Positive ) Return Positive is > begin > Case N is > When 1 => Return 1; > When Others => Return 1 + SumTo(N-1); > end case; > end SumTo; > > What values of N can I pass to this function and get back a > correct sum? Do the Ada compiler requirements tell me? No, they don't. But you knew that already. Vinzent. -- You know, we're sitting on four million pounds of fuel, one nuclear weapon, and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it? -- Rockhound, "Armageddon"