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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,25c89157223066bb,start X-Google-Attributes: gid103376,public From: Nirmala Bhupathi Subject: Constraint error Date: 1999/04/07 Message-ID: <370B9398.E10FC47F@rational.com>#1/1 X-Deja-AN: 463710852 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Rational Software Mime-Version: 1.0 Reply-To: nbhupath@rational.com Newsgroups: comp.lang.ada Date: 1999-04-07T00:00:00+00:00 List-Id: Hi, I am getting a constraint error with this program. Is it behaving right? with Ada.Text_IO; with Interfaces; procedure Show is type Local_T is mod 32; type Alpha_T is new Local_T; type Bravo_T is new Interfaces.Unsigned_32; type Charlie_T is digits 6; package Alpha_IO is new Ada.Text_IO.Modular_IO(Alpha_T); package Bravo_IO is new Ada.Text_IO.Modular_IO(Bravo_T); package Charlie_IO is new Ada.Text_IO.Float_IO(Charlie_T); A : Alpha_T; B : Bravo_T; C : Charlie_T; begin Ada.Text_IO.Put ("Enter: "); Charlie_IO.Get(C); A := Alpha_T(C); Alpha_IO.Put(A); Ada.Text_IO.New_Line; B := Bravo_T(C); Bravo_IO.Put(B); Ada.Text_IO.New_Line; end Show;