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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d9523383d7eb42d0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-21 23:40:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Zebylon" Newsgroups: comp.lang.ada Subject: Confused about Attribute Size? Date: Tue, 22 Jan 2002 08:39:01 +0100 Organization: ericsson Message-ID: NNTP-Posting-Host: 172.17.80.232 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:19164 Date: 2002-01-22T08:39:01+01:00 List-Id: Hi, I'm a newbie in Ada but I saw an Ada example that confused me a bit, here it is: type My_Type is (startbit, endbit, timeout, spare, nextbit, ...... ...... lastbit); for My_Type use (startbit =>0, endbit=>1, timeout=>2, spare=>3, nextbit=>4, ...... ...... lastbit=>15); for My_Type'Size use 8; type My_Type_Array is array (My_Type) of Boolean; What I don't understand is how you can assign the size to 8 bits? How will this work when there are 16 bits in the type? What will be the size of the array? This example was in Ada 83 could this be a clue? Thanks /S