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-24 05:09:56 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!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: <40126EA0.9090308@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> <400FC65B.2020006@noplace.com> <3vioub.jvt.ln@skymaster> <40111AC2.7010802@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Jan 2004 13:09:55 GMT NNTP-Posting-Host: 209.165.23.2 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1074949795 209.165.23.2 (Sat, 24 Jan 2004 05:09:55 PST) NNTP-Posting-Date: Sat, 24 Jan 2004 05:09:55 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:4769 Date: 2004-01-24T13:09:55+00:00 List-Id: Maybe its just you. :-) I don't run into it every day - its just that when you run into it, its like hitting a brick wall at 100mph. Code can be 100% totally legal and not compile. I can write you representation clauses all day long that are 100% pure Ada and will just make the compiler puke all over the place. (Or perhaps not give you what you want - which may be even worse). Compiler X may support the statement but Compiler Y may not. Worse, Compiler X for Target A may consider it legal but Compiler X for Target B does not. When you run into it, you end up pulling out your hair wishing you had some means of making the compiler ignore the version of the statement that you don't want for the particular target. Sometimes its a really, really little thing and you start considering another layer of indirection and separate build paths and the potential inefficiencies of the extra indirection (for me, that's often an issue) and you're going "Damnation! If I just had one little itsy-bitsy, insignificant, tiny conditional compilation directive here, I'd save myself the massive trouble of having to deal with two separate builds and all the headaches that go with it! Curse you, Ada Lovelace!!!" I'd rather not have that headache - and sometimes there are prohibitions or problems with multiple build paths that make it difficult or impossible. So you find some way of suffering under durress and muddling through and envying the guys who get to use C. :-) MDC Robert I. Eachus wrote: > > Is it just me, or is this really an issue? Remember it IS static, which > means that it does give you contitional compilation at compile time. > What it doesn't give you is the ability to write code that is illegal, > and compile anyway if it is not in the (static) execution path. > > I just never run into this situation unless there is a bug. There is > one case that I am aware of where this CAN happen, supplying a value for > digits in a floating point type declaration, or declaring an integer or > modular type that is too large for the implementation. > > Of course, I use GNAT. GNAT now supports IEEE floating-point and 64-bit > integer, fixed, decimal, and modular types for all versions. That is > enough for me. > -- ====================================================================== 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 ======================================================================