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,c1b618c3b35129ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-11 05:13:46 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!151.189.0.75!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: logical operations in Ada Date: 11 Feb 2001 13:59:50 +0100 Organization: Enyo's not your organization Message-ID: <87pugp2x4p.fsf@deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: supernews.google.com comp.lang.ada:5115 Date: 2001-02-11T13:59:50+01:00 List-Id: "Freelancer" writes: > Could anyone tell me how to do basic operation on ASCii characters? Why do you think these are 'logical operations'? > More specifically, I would like to do a to_upper function for example : > > 'a' becomes 'A' ( a to_upper function) Do you need a function for case conversion, or do you want to do fiddle with bits? Have a look at the package Ada.Characters.Handling or modular types (for which logical operations are defined). > Is it possible to define a block of assembly language code in an ada > program as well? Yes, see your compiler documentation on 'Machine Code Insertions'.