comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne Hibou57" <yannick_duchene@yahoo.fr>
Subject: Re: Discriminant and type extensions
Date: Thu, 8 Oct 2009 23:29:20 -0700 (PDT)
Date: 2009-10-08T23:29:20-07:00	[thread overview]
Message-ID: <8e6cbd59-03d2-4152-9585-7b6a97916f55@c3g2000yqd.googlegroups.com> (raw)
In-Reply-To: a98221d7-9579-4613-8522-3abed7b94181@s6g2000vbp.googlegroups.com

On 6 oct, 00:15, Yannick Duchêne Hibou57 <yannick_duch...@yahoo.fr>
wrote:
> For procedures and functions, the Renames clause may do the thing
> (explicitly re-introducing procedures and functions in the scope), but
> for discriminants in this kind of context, I do not know a way.
> Perhaps I do not know it, or perhaps this may be a candidate proposal.

While this can be a bit dangerous too. Today I've faced an
unintelligible confusing bug. It was due to erroneously edited copy/
paste done while importing some entities in a current scope from the
scope of an instantiated packages.

If only there was a way to check that both parts of a rename clause
use the same name. Like checking that in “ NameX Declaration renames
PackageY.NameX ” both NameX are the same.

Is it a famous practice ? If it is enough, a syntax to check it, based
on existing reserve words would not be syntactic sugar, this would be
really useful check.

Why not reuse the For/Use pre-existing keywords ? To have something
like “ for NameX Declaration use PackageY.NameX ”. This may not
conflict with a representation clause. Or it may ?



  reply	other threads:[~2009-10-09  6:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05 17:18 Discriminant and type extensions Hibou57 (Yannick Duchêne)
2009-10-05 20:42 ` Robert A Duff
2009-10-05 22:04   ` Adam Beneschan
2009-10-05 22:29     ` Yannick Duchêne Hibou57
2009-10-05 22:34       ` Yannick Duchêne Hibou57
2009-10-05 23:08         ` Adam Beneschan
2009-10-07  6:20           ` Yannick Duchêne Hibou57
2009-10-05 22:15   ` Yannick Duchêne Hibou57
2009-10-09  6:29     ` Yannick Duchêne Hibou57 [this message]
2009-10-09 15:42       ` Jean-Pierre Rosen
2009-10-07  7:21 ` Jean-Pierre Rosen
2009-10-07 15:39   ` 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