From: Eric Hughes <eric.eh9@gmail.com>
Subject: Re: default formal parameters in generic declarations
Date: Thu, 6 Mar 2008 10:05:59 -0800 (PST)
Date: 2008-03-06T10:05:59-08:00 [thread overview]
Message-ID: <8c4ddd97-42ab-454f-9ca4-89bf23e15fa0@b1g2000hsg.googlegroups.com> (raw)
In-Reply-To: 47cfba2a$0$14412$9b4e6d93@newsspool3.arcor-online.net
On Mar 6, 2:32 am, Georg Bauhaus <rm.tsoh.plus-
bug.bauh...@maps.futureapps.de> wrote:
> By way of speculation, can nesting, to the extent it is absent from C++,
> lead to at least a partial solution of this problem?
[example deleted]
The technique you outlined is applicable insofar as name space
manipulation goes, yes. I note here that your example uses a formal
default subprogram.
The problem, really, is that an aspect is larger than a single
function. An aspect has state, a state that augments the state of the
package for which it is an aspect. State, in Ada, is captured in
types. For example, a null aspect has no state, represented by a null
record. Ada currently has neither formal defaults for types or
packages; I've been focusing on packages. If Ada had a syntax for a
formal default type, I might be able to shoehorn everything through
that, at the cost of some contortion of syntax, but that's not
possible either.
> I'm noting all this only because I should think there is some value
> in nesting that, just maybe, is easily overlooked.
Certainly the point about nesting you make is true. It's one way of
addressing the self-reference problem. Yet it doesn't rise to a
complete approach.
Eric
next prev parent reply other threads:[~2008-03-06 18:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-02 17:21 default formal parameters in generic declarations Eric Hughes
2008-03-02 17:42 ` Robert A Duff
2008-03-02 19:40 ` Eric Hughes
2008-03-03 9:17 ` Dmitry A. Kazakov
2008-03-03 11:15 ` Georg Bauhaus
2008-03-03 13:56 ` Dmitry A. Kazakov
2008-03-04 16:15 ` Eric Hughes
2008-03-04 3:43 ` Randy Brukardt
2008-03-04 16:51 ` Eric Hughes
2008-03-04 18:43 ` Randy Brukardt
2008-03-05 21:08 ` Eric Hughes
2008-03-06 9:32 ` Georg Bauhaus
2008-03-06 18:05 ` Eric Hughes [this message]
2008-03-06 22:41 ` Ludovic Brenta
2008-03-07 10:51 ` Georg Bauhaus
2008-03-07 20:09 ` Eric Hughes
2008-03-03 12:42 ` Stephen Leake
2008-03-04 13:50 ` Dr. Adrian Wrigley
2008-03-04 16:56 ` Eric Hughes
2008-03-04 16:44 ` Eric Hughes
2008-03-05 13:11 ` Stephen Leake
2008-03-05 21:41 ` Eric Hughes
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox