comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: for Object_Size use 0
Date: Wed, 13 Apr 2005 08:58:43 +0100
Date: 2005-04-13T07:59:12+00:00	[thread overview]
Message-ID: <425ccf77_1@glkas0286.greenlnk.net> (raw)
In-Reply-To: mailman.18.1113357147.24457.comp.lang.ada@ada-france.org

Robert C. Leif wrote:
>       --  This is a test of whether Ada can have a type with a size

You're program isn't Ada it's GNAT.

I think the answer is "depends on your compiler", e.g.

   type Foo is null record;
   for Foo'Size use 0;

   Bar : Foo;

GNAT:        Bar'Size => 8
ObjectAda:  Bar'Size => 0

Cheers

-- Martin






  reply	other threads:[~2005-04-13  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-13  1:52 for Object_Size use 0 Robert C. Leif
2005-04-13  7:58 ` Martin Dowie [this message]
2005-04-13 15:51 ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2005-04-13 12:02 Robert C. Leif
2005-04-14  5:20 Christoph Grein
2005-04-14 14:48 ` Robert A Duff
replies disabled

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