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.6 required=5.0 tests=BAYES_00,DEAR_SOMETHING, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7b85ed8e46786486 X-Google-Attributes: gid103376,public From: bourguet@my-dejanews.com Subject: Re: Bit manipulation in Ada Date: 1999/02/04 Message-ID: <79ca1a$hoj$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 440591094 References: <79bvb3$99p$1@nnrp1.dejanews.com> X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u) X-Http-Proxy: NetCache@sj-netcache: Version 3.3R2P1D3, 1.0 x16.dejanews.com:80 (Squid/1.1.22) for client 158.140.3.201 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 04 14:15:16 1999 GMT Newsgroups: comp.lang.ada Date: 1999-02-04T00:00:00+00:00 List-Id: In article <79bvb3$99p$1@nnrp1.dejanews.com>, msnata@iptn.co.id wrote: > M. Suryanata > Phone: 022 674364 > Bandung > Indonesia > > Dear Sir, > > I am still studying in Informatic Department at Bandung Institute Technology. > For my thesis, I use Ada language in coding phase. > I am not familiar with Ada language but I have to use it because it is one of > the requirements given to me by my Advisor. We hope that after your thesis, you'll choose Ada because you like it. > I use alot of bit manipulations, such as: shift left "<<", XOR "^" in C > language, for my project. > Does Ada language have these features or capabilities ? C bit manipulations may be implemented in (at least) 3 ways in Ada: 1) (packed) array of boolean, if you are really manipulating bits. 2) representation clauses, if you want to extract fields 3) modular types, if you really need both an integer meaning and bit manipulation. This is like unsigned numbers in C, but I would recommand you consider the other 2 ways before... just because you are less familiar with. Yours, -- Jean-Marc -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own