From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Contraint error
Date: 1998/10/11
Date: 1998-10-11T00:00:00+00:00 [thread overview]
Message-ID: <m3btnjur6a.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36211A98.8C50ABBA@phoenix.net
Renwick Preston <rpreston@phoenix.net> 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.
prev parent reply other threads:[~1998-10-11 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-11 0:00 Contraint error Renwick Preston
1998-10-11 0:00 ` Tucker Taft
1998-10-11 0:00 ` Matthew Heaney
1998-10-11 0:00 ` Renwick Preston
1998-10-11 0:00 ` Renwick Preston
1998-10-11 0:00 ` Tom Moran
1998-10-11 0:00 ` Matthew Heaney [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox