From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: prefix of dereference must be a name?
Date: Fri, 31 Jul 2009 08:04:56 -0400
Date: 2009-07-31T08:04:56-04:00 [thread overview]
Message-ID: <uljm5xdlj.fsf@stephe-leake.org> (raw)
In-Reply-To: 3fe4b8a8-daf9-4161-84e2-ff230a2e7afd@s15g2000yqs.googlegroups.com
Yannick Duchêne Hibou57 <yannick_duchene@yahoo.fr> writes:
> On 30 juil, 09:09, Stephen Leake <stephen_le...@stephe-leake.org>
> wrote:
>> [...]
>> A.all := (C + B).all;
>>
>> What's the rationale for this?
>>
> About it, ARM 4.1 says:
> (2) name ::=
> direct_name | explicit_dereference
> | indexed_component | slice
> | selected_component | attribute_reference
> | type_conversion | function_call
> | character_literal
>
> But you can see in the latter excerpt, that “ function_call ” appears,
> but not “ expression ”.
Looking in the annotated language reference manual, I find this in
4.1, about what could be allowed as the prefix for .all:
17.f
Discussion: Actually, it would be reasonable to allow any
primary in front of .all, since only the value is needed, but
that would be a bit radical.
I guess that makes me a radical, which is nothing new :).
And yesterday's "radical" is today's "progressive". That note is from
the Ada 95 changes; time to move on!
But as you say, I want more than a primary, I want an expression. Hmm.
"primary" includes "qualified_expression". That would save me from
declaring Copy above. Although when things are class-wide the necessary
type qualifier can be quite long.
I still don't see the fundamental problem.
--
-- Stephe
next prev parent reply other threads:[~2009-07-31 12:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 7:09 prefix of dereference must be a name? Stephen Leake
2009-07-30 17:36 ` Yannick Duchêne Hibou57
2009-07-31 12:04 ` Stephen Leake [this message]
2009-07-31 12:23 ` Dmitry A. Kazakov
2009-07-31 21:49 ` Robert A Duff
2009-07-30 19:35 ` John B. Matthews
2009-08-03 14:44 ` Adam Beneschan
2009-08-03 17:46 ` John B. Matthews
2009-08-04 1:45 ` Adam Beneschan
2009-08-04 3:37 ` Yannick Duchêne Hibou57
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox