comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: C++0x : no 'concepts'
Date: Wed, 09 Sep 2009 16:47:34 +0200
Date: 2009-09-09T16:47:35+02:00	[thread overview]
Message-ID: <4aa7c007$0$30230$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <1myjt3v3dwqj3.1t8nncvu2ty3l$.dlg@40tude.net>

Dmitry A. Kazakov schrieb:

>> Fantasizing, could we have, in Ada,
>>
>> - recursive instantiations of pure generics?
> 
> Huh, the second edition of interfaces, now for the "Ada preprocessor"? I
> read you that all instances of the same body when instantiated
> automatically will be considered "same". Right?

No, I was thinking of this:


generic
   N : Natural := (if N = 0
                     then 1
                     else new Factorial'(N * Factorial(N - 1)));
function Factorial return Positive;

pragma Pure(Factorial);



(Very much ad hoc.)



  reply	other threads:[~2009-09-09 14:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 11:44 C++0x : no 'concepts' Martin
2009-09-09 12:12 ` Georg Bauhaus
2009-09-09 12:15   ` Martin
2009-09-09 12:39   ` Dmitry A. Kazakov
2009-09-09 14:47     ` Georg Bauhaus [this message]
2009-09-09 15:42       ` Dmitry A. Kazakov
2009-09-09 14:49 ` Adam Beneschan
2009-09-09 19:26   ` sjw
2009-09-10  0:16 ` wwilson
2009-09-10  0:45   ` Keith Thompson
2009-09-10 23:36     ` Stephen Leake
2009-09-11  4:36       ` wwilson
2009-09-11 10:10 ` John McCabe
replies disabled

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