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,85c4b961f840b5ab,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: Zero length Objects Date: Tue, 29 Jun 2004 22:55:13 -0700 Organization: Newport Instruments Message-ID: Reply-To: rleif@rleif.com NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1088614449 43848 212.85.156.195 (30 Jun 2004 16:54:09 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 30 Jun 2004 16:54:09 +0000 (UTC) To: "Comp. Lang. Ada" Return-Path: X-Authenticated-User: rleif.rleif.com X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcReZsA16AjvMKVdQCyJx2teJv5s3Q== X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 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:2009 Date: 2004-06-29T22:55:13-07:00 I am trying to create a means to report the value of experimental parameters. I would like to store only those parameters that I have selected. Since thanks to Robert I. Eachus, I am using a variant record, I can set the parameter to null, which is presently stored as 16 bits. I created an empty type; please see the small main procedure below. I have not been able to have the size attribute work directly on null. with Ada.Text_Io; procedure Empty_Pkg is package T_Io renames Ada.Text_Io; type Empty_Type is (Empty); for Empty_Type'Size use 0; Empty_Var : Empty_Type; begin T_Io.Put_Line("The size of empty is " & Integer'Image(Empty_Var'Size)); end Empty_Pkg; This produced: The size of empty is 8 Thank you. Bob Leif