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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: bitwise comparators Date: 2000/01/17 Message-ID: <85vjd3$aai1@news.cis.okstate.edu>#1/1 X-Deja-AN: 573849963 References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <38834F16.FE5DE77F@hotmail.com> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-01-17T00:00:00+00:00 List-Id: On Mon, 17 Jan 2000 18:19:18 +0100, Alexander Van Hecke wrote: >Mike Silva wrote: >> here's an off-the-cuff list of Ada features I find "more powerful" than C >> (my primary language): >> >> Strong typing >> Multitasking >> Generics >> Tagged Types >> Packages >> Exceptions >> Discriminants >> Arrays indexed over arbitrary ranges, including enumerations >> Much greater control over variable range and representation >> Runtime error checking > >I'm not sure why you think these features are more _powerful_ than in C. I'd >label these features as more _advanced_. Is this more than a difference in terminology? >C is an old language (allthough I'm >not sure at all about Ada), but nearly all those things you sum up are >_possible_ in C, maybe they're not as easy as in Ada and require the programmer >to explicitly program them (which may take a lot of code), but they're >possible. Anything possible in one language is possible in another language, from a theoritical perspective. Multitasking is impossible (from a practical perspective) in C without add on libraries. Setjmp/longjmp exceptions should be much more inefficent in C then in Ada. In pure C89, there is no way to gain control over variable range, short of using outside tools like Autoconf. -- David Starner - dstarner98@aasaa.ofe.org If you wish to strive for peace of soul then believe; if you wish to be a devotee of truth, then inquire. -- Friedrich Nietzsche