From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 8 Jul 93 14:21:01 GMT From: rational.com!geneo@uunet.uu.net (Gene Ouye) Subject: Re: Question of Visibility Message-ID: <1993Jul8.142101.16075@rational.com> List-Id: Wes Groleau X7574 (groleau@e7sa.crd.ge.com) wrote: : In all the discussion on "hiding" STANDARD.BOOLEAN with a different bit : pattern, I have yet to see two issues addressed: : 1. I would expect STANDARD.BOOLEAN in any implementation to match the interna l : hardware's conditional instructions. : 2. IF one somehow succeeded in hiding STANDARD.BOOLEAN, wouldn't the compiler : generate the same code as before for if statements? : Wes Groleau Wes, I tried to email this to you, but it bounced back: FYI: On Friday I sent an email to Boris (couldn't post it because our news was acting up) that mentioned the following: o "Use"-ing a Boolean_Types_Pkg would not redefine the predefined operators that return Standard.Boolean. This means that the code will have to change. If nothing else, there will have to be explicit conversions between the Boolean_Type_Pkg.Boolean and Standard.Boolean before/after every call to the FORTRAN library that expects/returns boolean values. o If the code has to change, IMHO it would be best to place a skin over the pragma Interface to the FORTRAN library that would do the conversion between the Ada and the FORTRAN perceptions of Boolean. That would hide the FORTRAN specifics at an appropriate level, and would not make the entire Ada application dependent on FORTRAN's representation of a Boolean. Gene Ouye (geneo@rational.com)