From: Adam Beneschan <adam@irvine.com>
Subject: Re: package Ada.Tags
Date: Fri, 8 Jun 2012 08:26:46 -0700 (PDT)
Date: 2012-06-08T08:26:46-07:00 [thread overview]
Message-ID: <fe47b8e4-4f57-4450-9417-e42e84d3b746@googlegroups.com> (raw)
In-Reply-To: <op.wfkwaguhule2fv@douda-yannick>
On Friday, June 8, 2012 2:50:30 AM UTC-7, Hibou57 (Yannick Duchêne) wrote:
> Forgive me for being pedantic, but it's important to note this is not a
> type conversion, that's a *view conversion*.
There are two kinds of type conversions: "view conversions" and "value conversions". So, yes, this is a type conversion, and yes, it's a view conversion.
The important thing to note (for the OP) is that since this is not a value conversion, that means the tag doesn't change. Similarly with one of the examples I posted earlier, where I wrote Events_Record_Type(Event) [without the 'Class]. This is also a view conversion, which means that while it causes the compiler to look at the object differently, it's not a *value* conversion, so the value doesn't change to a value of a different type--which means 'Tag will still be the same, which is what the OP wanted.
-- Adam
next prev parent reply other threads:[~2012-06-08 15:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 20:36 package Ada.Tags RasikaSrinivasan
2012-06-07 21:35 ` Simon Wright
2012-06-07 21:48 ` RasikaSrinivasan
2012-06-08 9:50 ` Yannick Duchêne (Hibou57)
2012-06-08 9:59 ` Dmitry A. Kazakov
2012-06-08 15:26 ` Adam Beneschan [this message]
2012-06-08 16:31 ` Simon Wright
2012-06-07 21:49 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox