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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3869f0598191b11d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Porting ADA source Date: Tue, 20 Jul 2004 12:41:39 +0100 Organization: BAE SYSTEMS Message-ID: <40fd03b4$1_1@baen1673807.greenlnk.net> References: <40FBBB16.8050206@noplace.com> X-Trace: news.uni-berlin.de O3biHSFDCuTOG3l5jIER9wUkUJpXQC/l3VoYM/1Swnm6iC9Lra X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:2267 Date: 2004-07-20T12:41:39+01:00 List-Id: Peter C. Chapin wrote: > I'm new to Ada so forgive me if I'm beating a dead horse here, but > I'm not sure how this example solves the problem. If the Ada code is > compiled in an environment where 'Cos' does not exist, won't the > renaming declaration cause an error? The example is for the case where "Cos" is defined but the code uses "Cosine". For the environment where "Cosine" already exists you don't need the renames - you can control which version at build time. This can hidden with some sort of wrapper package for both platforms. Cheers -- Martin