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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4eca860272d4832b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.germany.com!news.belwue.de!th!lucks From: Stefan Lucks Newsgroups: comp.lang.ada Subject: Re: AW: Static vs dynamic evaluation anomaly? Date: Wed, 7 Feb 2007 07:59:55 +0100 Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany) Message-ID: References: NNTP-Posting-Host: th.informatik.uni-mannheim.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.BelWue.DE 1170831598 28371 134.155.91.85 (7 Feb 2007 06:59:58 GMT) X-Complaints-To: news@news.belwue.de NNTP-Posting-Date: Wed, 7 Feb 2007 06:59:58 +0000 (UTC) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:9050 Date: 2007-02-07T07:59:55+01:00 List-Id: There seems to be something wrong with the Put_Line statement: On Wed, 7 Feb 2007, Grein, Christoph (Fa. ESG) wrote: > with Ada.Text_IO; > use Ada.Text_IO; > procedure test271 is > type Six_Bits is mod 2**6; > X: constant Six_Bits := 31; > Z: constant Integer := 31; > begin > for J in 0..5 loop > Put_Line (Integer 'Image (J) & > Six_Bits'Image (X * 2**J) & > Integer 'Image ((X * 2**J) mod Six_Bit'Modulus)); Put_Line (Integer 'Image (J) & Six_Bits'Image (X * 2**J) & Integer 'Image ((Integer(X) * 2**Integer(J)) mod Six_Bits'Modulus) ); > end loop; > end test271; > -- Stefan Lucks Th. Informatik, Univ. Mannheim, 68131 Mannheim, Germany e-mail: lucks@th.informatik.uni-mannheim.de home: http://th.informatik.uni-mannheim.de/people/lucks/ ------ I love the taste of Cryptanalysis in the morning! ------