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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8309f2bc055237c4 X-Google-Attributes: gid103376,public From: Sandro Binetti Subject: Re: Bit manipulation Date: 2000/11/08 Message-ID: <8ubld2$hdd$1@nnrp1.deja.com>#1/1 X-Deja-AN: 691191599 References: <8u8v6n$b7o$1@nnrp1.deja.com> <2WTH$pdrCfOd@eisner.decus.org> <8ub6kt$6nd$1@nnrp1.deja.com> <8ubeq8$cgm$1@nnrp1.deja.com> X-Http-Proxy: 1.0 ssi21:3128 (Squid/2.3.STABLE4), 1.0 x60.deja.com:80 (Squid/1.1.22) for client 172.27.66.83, 195.223.220.65 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Nov 08 13:45:07 2000 GMT X-MyDeja-Info: XMYDJUIDsandrobinetti Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Date: 2000-11-08T00:00:00+00:00 List-Id: In article <8ubeq8$cgm$1@nnrp1.deja.com>, Robert Dewar wrote: > Nope! When someone asks how can I do "xxx" and xxx is a low > level implementation technique, it is always appropriate to > enquire as to what the problem is. > > A C programmer is used to shifting and masking as a solution > for all sorts of problems. Now there are cases where such > a solution is appropriate in Ada, which is why the capability > was added in Ada 95, but compared to C, they are few and > far between. I'm an ADA programmer since 1989; I've written millions of lines of ADA code, developped systems that, fortunately, runs without "unhandled exceptions". I say SYSTEMS, not little PROGRAMS, with lines and lines of generic instantiation, exception handlers, tasks that wait each other in respect of strict time constraints, and so on. But the real fact is not this. My ADA code has, always, a little (very little) part made of "pragma INTERFACES" to C language, in order to manage certain Unix or Linux kernel capabilities (curses, for example). So, once again, the question is the following: IF I HAVE TO MANAGE A COMPLEX UNCOMMERCIAL DEVICE, SAY A SATELLITE BUS, WHY DO I HAVE TO WRITE ALL THE CODE USING ADA (IMPOSED FOR THESE REAL- TIME ORIENTED APPLICATIONS) AND, AT A CERTAIN MOMENT, USE LOW LEVEL MANIPULATION IN C LANGUAGE? If you can give me a simple answer... -- Ciao, Sandro Sent via Deja.com http://www.deja.com/ Before you buy.