comp.lang.ada
 help / color / mirror / Atom feed
From: Wesley Groleau <wesgroleau@despammed.com>
Subject: Re: something I would like to see in ADA 2005
Date: Mon, 14 Apr 2003 10:34:13 -0500
Date: 2003-04-14T10:34:13-05:00	[thread overview]
Message-ID: <ou-cndkvF4VvSQejXTWcqw@gbronline.com> (raw)
In-Reply-To: <6a90b886.0304140639.4ee1abfb@posting.google.com>

Tony Gair wrote:
> For instance try declaring a generic protected object.

generic

    -- package instantiation here

    -- subprogram here

    type Custom_Type is ......

    -- generic constant here

package Customizable is

    protected Safe_Object is
       -- subprograms whose bodies can reference
       -- ANY of the generic parameters
    private
       The_Data : Custom_Type;
    end;

end Customizable;

....

    package Customized is new Customizable (.......);

    X : Customized.Safe_Object;

.....




  reply	other threads:[~2003-04-14 15:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-10 13:22 something I would like to see in ADA 2005 Tony Gair
2003-04-10 14:04 ` Hyman Rosen
2003-04-14 14:34   ` Tony Gair
2003-04-14 15:33     ` Bill Findlay
2003-04-10 14:12 ` David C. Hoos
2003-04-10 14:24   ` Peter Hermann
2003-04-11  0:10 ` Robert A Duff
2003-04-14 14:39   ` Tony Gair
2003-04-14 15:34     ` Wesley Groleau [this message]
2003-04-14 15:41     ` Bill Findlay
2003-04-15  8:10     ` 
2003-04-15  8:29       ` 
2003-04-14 15:40 ` Stephen Leake
replies disabled

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