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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bbs-scene.org!eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: integers of 1, 2, 4 bytes Date: Sun, 15 Jun 2014 17:52:16 -0300 Message-ID: References: <1d32e2i06k9ek$.1oosi3xk706l0$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net k0+v4fOPdrVBPMg4LNw14gH5hYJlJtsfQI371tpZBE8rG2dBKb Cancel-Lock: sha1:mChETaFg5BtQi489TekQ6zHs0rg= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <1d32e2i06k9ek$.1oosi3xk706l0$.dlg@40tude.net> X-Original-Bytes: 1511 Xref: number.nntp.dca.giganews.com comp.lang.ada:186937 Date: 2014-06-15T17:52:16-03:00 List-Id: On 06/15/2014 03:43 PM, Dmitry A. Kazakov wrote: > On Sun, 15 Jun 2014 14:57:31 -0300, hreba wrote: > >> So I need the Oberon types SHORTINT (1 byte), INTEGER (2 bytes) and >> LONGINT (4 bytes). A type BYTE (1 byte, values 0..255) would be useful >> too. In Oberon one uses CHAR for that. > > [...] > > See ARM B.2: > > http://www.ada-auth.org/standards/12rm/html/RM-B-2.html > That is indeed the best imaginable case: don't need to do anything, someone has done it already. Thanks a lot for the hint. -- Frank Hrebabetzky +55 / 48 / 3235 1106 Florianopolis, Brazil