comp.lang.ada
 help / color / mirror / Atom feed
From: milo!edm@uunet.uu.net  (Ed Matthews)
Subject: Re: 'SIZE attribute of a type
Date: 6 Dec 91 21:14:27 GMT	[thread overview]
Message-ID: <1991Dec6.211427.24174@verdix.com> (raw)

In article <EACHUS.91Dec6115421@Dr_No.mitre.org> eachus@Dr_No.mitre.org (Robert
 I. Eachus) writes:
>
>   Not quite.  AI-00536/08-BI-WA requires that Boolean'SIZE = 1.
>Objects of type Boolean may have a size of 8 (or 32, or whatever), but
>Boolean must have 'SIZE = 1 so that (packed) Boolean arrays are bit
>vectors.  Most vendors do fiercely pack bit vectors, but some still
>get Boolean'SIZE wrong.  (This is a very recent AI.) A quick test
>program:

Am I alone, or does anyone else think this is crazy?  

If I read the AI correctly, then Foo'Size is likely > 1 where Foo is an object
of type Boolean, but Boolean'Size is 1.  Why the discrepancy?  The results
are counter-intuitive. 

Boolean'Size = 1 seems to have nothing to do with packing bit vectors.

I fail to see the wisdom behind this AI.
-- 

Ed Matthews                                                edm@verdix.com
Verdix Corporation Headquarters                            (703) 378-7600
Chantilly, Virginia

             reply	other threads:[~1991-12-06 21:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-12-06 21:14 Ed Matthews [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-12-13 17:24 'SIZE attribute of a type elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!ds
1991-12-13 16:00 Alex Blakemore
1991-12-13 15:23 agate!spool.mu.edu!yale.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!ca
1991-12-12 22:49 Robert I. Eachus
1991-12-12 15:36 elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu
1991-12-12 15:18 elroy.jpl.nasa.gov!swrinde!mips!samsung!caen!umeecs!dip.eecs.umich.edu!wa
1991-12-12  3:17 Mark Biggar
1991-12-11 18:29 elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gv
1991-12-10 12:30 mcsun!uknet!yorkohm!minster!mjl-b
1991-12-10  8:23 paul goffin
1991-12-09 13:24 Ed Matthews
1991-12-07  0:32 Donald Gardner
1991-12-06 21:07 Richard Pattis
1991-12-06 20:15 parkhill
1991-12-06 20:04 parkhill
1991-12-06 18:50 Brian Hanafee
1991-11-14 20:15 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!pacbell.com!iggy.GW.Vit
1991-11-14 19:58 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!pacbell.com!iggy.GW.Vit
1991-11-14 16:45 Danford Lehman
1991-11-13 17:01 elroy.jpl.nasa.gov!sdd.hp.com!mips!zaphod.mps.ohio-state.edu!unix.cis.pit
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox