comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: User define attributes
Date: Thu, 19 Apr 2001 01:35:13 GMT
Date: 2001-04-19T01:35:13+00:00	[thread overview]
Message-ID: <3ADE40C8.BADBA9C2@acm.org> (raw)
In-Reply-To: 3ADDFE24.9B3E1038@gsde.hou.us.ray.com

"Samuel T. Harris" wrote:
> 
>     generic
>         type Index_Type is (<>);
>         type Component_Type is private;
>         type Array_Type is array (Index_Type range <>) of Component_Type;
>         with function Width (Item : Index_Type) return Natural is <>;
>         with function Image (Item : Index_Type) return String is <>;
>         with function Value (Item : String) return Index_Type is <>;

Note that since Index_Type is a discrete type, the generic can call
Index_Type'Image, Index_Type'Value, and so on directly.

-- 
Jeff Carter
"You couldn't catch clap in a brothel, silly English K...niggets."
Monty Python & the Holy Grail



  reply	other threads:[~2001-04-19  1:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-14 13:33 User define attributes Ayende Rahien
2001-04-16  7:27 ` Martin Dowie
2001-04-16 11:23   ` Ayende Rahien
2001-04-16 11:37     ` Martin Dowie
2001-04-16 14:35       ` Samuel T. Harris
2001-04-16 15:20         ` Martin Dowie
2001-04-16 15:37           ` Brian Rogoff
2001-04-16 16:19           ` Samuel T. Harris
2001-04-16 17:08             ` Marin David Condic
2001-04-16 22:00               ` Samuel T. Harris
2001-04-17 12:34                 ` Georg Bauhaus
2001-04-17 20:35                   ` Samuel T. Harris
2001-04-24 21:00                   ` Samuel T. Harris
2001-04-16 17:37             ` Martin Dowie
     [not found]           ` <0tEC6.7646$FY5.638172@www.newsranger.com>
2001-04-16 17:34             ` Martin Dowie
2001-04-18 12:14         ` Marius Amado Alves
2001-04-18 20:50           ` Samuel T. Harris
2001-04-19  1:35             ` Jeffrey Carter [this message]
2001-04-19 12:50               ` Samuel T. Harris
2001-04-20 19:08             ` Marius Amado Alves
replies disabled

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