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,4fe319e8a983326a X-Google-Attributes: gid103376,public From: Gautier Subject: Re: C question (was: Ada & C) Date: 2000/01/18 Message-ID: <3884C357.2592D5D7@maths.unine.ch>#1/1 X-Deja-AN: 574331506 Content-Transfer-Encoding: 7bit References: <3878D189.80E1CCB4@gte.net> <387CE6DC.4DFDDFC4@ftw.rsc.raytheon.com> <85ipn5$7pu2@news.cis.okstate.edu> <85j3a5$r3p$1@nnrp1.deja.com> <85j4r7$9qe1@news.cis.okstate.edu> <3884AA55.3F0BF240@earthlink.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 18 Jan 2000 19:46:12 +0100, 130.125.13.32 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-18T00:00:00+00:00 List-Id: Charles Hixson wrote: > Actually, I tend to feel that pointer casts *SHOULD NOT* be translated. * If the Ada code is made to run in the same platform & memory model, it is surely the wisest solution (avoids adding bugs) - but then it may not be necessary to translate the C. * If the pointer arithmetics are specific to a memory model and you have to change (e.g.) from 16-bit C to portable Ada, I'm afraid you may be obliged to understand what had be done in the original code and translate the pointer casts... G.