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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-22 04:58:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <400FC8E8.2040100@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Standard Ada Preprocessor (Was: why ada is so unpopular ?) References: <49cbf610.0401170627.79c3dfe5@posting.google.com> <400A9B48.3060100@noplace.com> <400BD4B5.6000307@noplace.com> <400BDB7C.40100@noplace.com> <400D2150.6000705@noplace.com> <400E72F9.8060501@noplace.com> <100upo7ln5e3k59@corp.supernews.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 22 Jan 2004 12:58:19 GMT NNTP-Posting-Host: 165.247.68.244 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1074776299 165.247.68.244 (Thu, 22 Jan 2004 04:58:19 PST) NNTP-Posting-Date: Thu, 22 Jan 2004 04:58:19 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:4635 Date: 2004-01-22T12:58:19+00:00 List-Id: And that only expands geometrically if you try to support enumerals for other vendor's implementations in order to be able to accept code built for their compilers. How about *adding* something to system like: System.Compiler_ID : constant String := "Something Useful Here" ; This would not break anything that was already using System_Name (although given its general uselessness, I doubt that is very much) and would provide a mechanism for identifying the compiler that is doing the job. Then statements like "if (Compiler_ID = "Something") then..." would possibly be useful. You still need some mechanism to wrap that around declarations and other stuff. Perhaps that could be solved with some flavor of a pragma that could take a case-like if statement around what you want conditionally compiled. Maybe the whole thing should be solved with a pragma since you don't want to have to first "with" System before you can start conditionally withing other packages. That also gets simpler to deal with from a language perspective since there has always been the ability to have implementation defined pragmas. MDC Randy Brukardt wrote: > > Besides, having all of your supported targets in the enumeration is a real > maintenance headache. If you add or drop support for a target, you have to > go modify System in all of the targets. Yuck. > > Randy. > > > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "Face it ladies, its not the dress that makes you look fat. Its the FAT that makes you look fat." -- Al Bundy ======================================================================