comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Discriminant of a limited type object
Date: Wed, 28 Feb 2018 18:16:36 +0100
Date: 2018-02-28T18:16:36+01:00	[thread overview]
Message-ID: <p76o5k$nvu$1@dont-email.me> (raw)
In-Reply-To: <p75ilv$rqm$1@gioia.aioe.org>

On 02/28/2018 07:36 AM, J-P. Rosen wrote:
>     function Init_All (Size : Integer) return T is
>     begin
>        if Size = 1 then
>           return (1 => do_init)
>        else
>           return do_init & Init_All (size - 1);
>        end if;
>     end;

And I of course would write Init_All (0).

-- 
Jeff Carter
"From this day on, the official language of San Marcos will be Swedish."
Bananas
28


  parent reply	other threads:[~2018-02-28 17:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 17:54 Discriminant of a limited type object Dmitry A. Kazakov
2018-02-27 22:20 ` Randy Brukardt
2018-02-27 22:53   ` Dmitry A. Kazakov
2018-02-28  6:36     ` J-P. Rosen
2018-02-28  8:42       ` Dmitry A. Kazakov
2018-02-28  9:07         ` J-P. Rosen
2018-02-28 17:16       ` Jeffrey R. Carter [this message]
2018-02-28 23:10     ` Randy Brukardt
2018-03-01  8:43       ` Dmitry A. Kazakov
2018-03-01 22:00         ` Randy Brukardt
2018-03-02 10:30           ` Dmitry A. Kazakov
replies disabled

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