comp.lang.ada
 help / color / mirror / Atom feed
From: "Y.Tomino" <demoonlit@panathenaia.halfmoon.jp>
Subject: Re: Pure, Storage_Size and Unchecked_Conversion
Date: Sun, 08 Jul 2007 03:41:38 -0700
Date: 2007-07-08T03:41:38-07:00	[thread overview]
Message-ID: <1183891298.519116.281800@a26g2000pre.googlegroups.com> (raw)
In-Reply-To: <1183888192.6233.6.camel@kartoffel>

gcc 4.1.2 and gcc 4.2.0 are different. The default mode of gcc 4.2.0
is Ada 2005.
And, Ada 2005 accepts access types with "for T'Storage_Size use 0" in
pure package.
"for T'Storage_Size use 0" means to disallow "new". T will be plain
address value, and has no side effect.
Please, see http://www.adaic.com/standards/05rm/html/RM-10-2-1.html

> Just guessing what your package is supposed to achieve,
> have you considered using System.Address_To_Access_Conversions?

System.Address_To_Access_Conversions fixes pointer type as access all.
Actually, I want to use the access constant, and expect inlining.

--
YT http://panathenaia.halfmoon.jp/alang/ada.html




  reply	other threads:[~2007-07-08 10:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08  0:24 Pure, Storage_Size and Unchecked_Conversion Y.Tomino
2007-07-08  9:49 ` Georg Bauhaus
2007-07-08 10:41   ` Y.Tomino [this message]
2007-07-08 16:08 ` Martin Krischik
2007-07-09 13:31   ` Y.Tomino
2007-07-09 21:31     ` Georg Bauhaus
2007-07-10  1:35 ` Randy Brukardt
2007-07-10  8:30   ` Georg Bauhaus
2007-07-15 17:30   ` Y.Tomino
replies disabled

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