>I tried a couple of different things before your final line of
>    Ada.Text_Io.Put_Line ("Image is " & Month_Type'Image (Control_Data.Month));
>With Apex that raises constraint error, as the incorrect value is now
>being used.

Raises Program_Error on Green Hills.

>But I think one conclusion that could be reached is that if you
>are not absoultely sure about the input to unchecked_conversion
>then you need to validate the data your self.

I agree but, as I said, the code I need to use was provided by a third party, so
we need to make them fix it I think.


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender
immediately by telephoning +44(1252) 373232. You should not copy it
or use it for any purpose nor disclose or distribute its contents to
any other person.