TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Mon, 19 Feb 2001 12:28:30 +0000
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (28 lines)
>I tried a couple of different things before your final line of
>output:
>    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.

John



********************************************************************
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.
********************************************************************

ATOM RSS1 RSS2