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,90f687f65a66617e X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Simple ADA/C Question Date: 1997/02/26 Message-ID: #1/1 X-Deja-AN: 221590563 References: <01bc23b2$ecc64960$64e2b8cd@p5120.bda> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-02-26T00:00:00+00:00 List-Id: Bob Klungle said <<> If the C function returns int, The Ada should give > you an exception and crash the program (unless you are capturing the > exception with something like: > exception > when others => Null; > end;)>> I have no idea what BOb is thinking of here. It is perfectly fine to call a C function that returns an int, with the Ada function having a return type of (type Myint is new Integer), if the representation of int and Integer are the same, as is always true of GNAT, and likely true of most other Ada 95 compilers.