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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, PLING_QUERY,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b87bc683630619fa X-Google-Attributes: gid103376,public From: mcm@cs.cmu.edu (Martin C. Martin) Subject: Re: HELP:Declaration in ADA?!! Date: 1996/04/09 Message-ID: <4ulok5fn1m.fsf@zippy.frc.ri.cmu.edu>#1/1 X-Deja-AN: 146555441 sender: mcm@zippy.frc.ri.cmu.edu references: <4j65rr$fqg@soleil.uvsq.fr> <4kc5ti$1ir@comet2.magicnet.net> organization: Field Robotics Center, Carnegie Mellon University reply-to: mm+@cmu.edu (Martin C. Martin) newsgroups: comp.lang.ada Date: 1996-04-09T00:00:00+00:00 List-Id: > Tuyet-Tram DANG-NGOC wrote: > > >Hi there, > > >I have a stupid question to ask. > >DOES SOMEONE KNOW HOW TO DECLARE LONG_INTEGER IN ADA? > >All the books I've read here does not answer this metaphysical question, they > >just take it as if everyone should know how to declare it. In a wonderful > >book, I've seen how to declare LONG_REAL by typing: > > type LONG_REAL is DIGIT 14; > >But how to do it for LONG_INTEGER? > >Can someone answers me pleeeeaaaase, i've a big and horrible project to finish > >for very soon. Long_Integer may already be defined in your compiler; the ARM says it's an optional type, but I think most compilers define it (at least, if there are assembly instructions which would manipulate such an integer directly). If not, you can define it this way: type Long_Integer is range -2_147_483_647 .. 2_147_483_647 Mind you, I think this will only work if there already is a 32 bit integer type in your compiler, and if so it's probably already called Long_Integer. Martin.