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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,58331d88725b914e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Christoph Grein Newsgroups: comp.lang.ada Subject: Re: for Object_Size use 0 Date: Thu, 14 Apr 2005 07:20:48 +0200 Organization: Cuivre, Argent, Or Message-ID: Reply-To: Christoph.Grein@eurocopter.com NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: melchior.cuivre.fr.eu.org 1113456845 98383 212.85.156.195 (14 Apr 2005 05:34:05 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 14 Apr 2005 05:34:05 +0000 (UTC) To: CLA Return-Path: X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 X-OriginalArrivalTime: 14 Apr 2005 05:28:49.0654 (UTC) FILETIME=[D6790960:01C540B2] X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:10446 Date: 2005-04-14T07:20:48+02:00 Robert A Duff wrote: > "Robert C. Leif" writes: > > > >> I specifically need to know if it is possible to create a zero >> sized >> type in Ada 95 or the updated standard, which is to be released in >> the near >> future. >> > > > For a discrete type, Size can be zero. So in your example: > > type Empty_Type is (Empty); > > Empty_Type'Size must be zero (if there is no Size clause). > This follows from RM-13.3(55). The same is true of > "subtype S is Integer range 0..0;" -- S'Size = 0 by default. > See also para 55.b in the AARM. > But this is only "Implementation Advice". Consequently RM-13.3(55) uses the word "should". But you're the language lawyer...