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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5081b691b6105830,start X-Google-Attributes: gid103376,public From: Ding-yuan Sheu Subject: one's complement operator in Ada Date: 1996/07/26 Message-ID: <31F8DE73.41C6@afit.af.mil>#1/1 X-Deja-AN: 170272582 cc: dsheu@afit.af.mil, mkanko@afit.af.mil, lawlis@afit.af.mil, content-type: text/plain; charset=us-ascii organization: Air Force Institute of Technology mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP20) Date: 1996-07-26T00:00:00+00:00 List-Id: Hello all, I am working on a project to convert a C++ program into Ada95. I try to find a easy way to achieve the effect of '~' (one's complement operator) in C++. I wonder if there is a good way to obtain the same result in Ada without programming it as a procedure or function. For example, in C++: ulong mask; : : ulong j:= ~mask; How can I convert this partical code into Ada in a "easy" way? I'll appreciate any help. Thanks in advance. Steven ( dsheu@afit.af.mil )