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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8179c5e594eb425e X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Contraint error Date: 1998/10/11 Message-ID: #1/1 X-Deja-AN: 400030676 Sender: matt@mheaney.ni.net References: <3620BB8F.2973CE00@phoenix.net> <36211A98.8C50ABBA@phoenix.net> NNTP-Posting-Date: Sun, 11 Oct 1998 14:02:15 PDT Newsgroups: comp.lang.ada Date: 1998-10-11T00:00:00+00:00 List-Id: Renwick Preston writes: > I'm using the compiler that came with the book Ada 95 Problem Solving > and Program Design. Actually the code should have read > > If NOT June_Completed etc but I fixed the problem by adding > > When Others > NULL; > > at the end of the CASE statement. I don't understand why that fixed it > because all the possible cases were already covered. Was the Month object given a value? It could be that you tried to execute a case statement using an object that wasn't initialized, and you were lucky enough to get an exception.