comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <eachus@mitre.org>
Subject: Re: Ragged Array Proposal
Date: 1999/09/23
Date: 1999-09-23T21:19:17+00:00	[thread overview]
Message-ID: <37EA9A72.594ED8F5@mitre.org> (raw)
In-Reply-To: 37e7c08e@eeyore.callnetuk.com

Nick Roberts wrote:

> I seem to get the impression that the cognoscenti consider this particular
> idea worthless. I am perfectly serious about it, however; I am completely
> convinced that it would be both workable and valuable (extremely so, in
> fact). I beseech anyone who might be interested to take a serious look; I
> would be delighted to have feedback (_any_ kind of feedback), either to me
> by e-mail or to this newsgroup.
 
   Not worthless, just excessive.  There are already two ways to do what
you seem to want: arrays of Ada.Strings.Unbounded.Unbounded_String, or a
generic
package that does what you want using Controlled types.  If you want to
supply a package like that it would probably be considered, if not for
the next standard, at least to be provided by all implementors.  (And if
you do it before the ARG meeting Monday, it might even get considered
there...)

   Note: I have implemented a slightly more general version of that
package, where my major concern was to provide extensible records. 
Hmmm.  What you want seems to be a generic package with a specification
like:

   with Ada.Finalization;
   generic
     type Index is (<>);
   package Ragged is

     type Element is private with null;
     type Element_Reference is access all Element'Class;
     type Ragged_Array is array (Index range <>) of Element_Reference;
    
     procedure Assign_To(R: in out Ragged_Array; I: in Index, E:
Element);
     function Dereference(R: Ragged_Array; I: Index) return
Element'Class;
   
   private
     -- implemenation defined...
   end Ragged;

   Any comments?

-- 

                                        Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  parent reply	other threads:[~1999-09-23  0:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <37e7c08e@eeyore.callnetuk.com>
1999-09-22  0:00 ` Ragged Array Proposal Ted Dennison
1999-09-22  0:00   ` Ray Blaak
1999-09-23  0:00     ` Ted Dennison
1999-09-23  0:00     ` Tucker Taft
1999-09-23  0:00       ` Nick Roberts
1999-09-23  0:00         ` Hyman Rosen
1999-09-24  0:00           ` Nick Roberts
1999-09-24  0:00             ` Hyman Rosen
1999-09-25  0:00               ` Robert Dewar
1999-09-27  0:00                 ` Hyman Rosen
1999-09-27  0:00                   ` Brian Rogoff
1999-09-28  0:00                   ` Robert Dewar
1999-09-24  0:00         ` Robert Dewar
1999-09-24  0:00           ` Wes Groleau
1999-09-25  0:00             ` Robert Dewar
1999-09-25  0:00             ` Robert Dewar
1999-09-24  0:00         ` Ted Dennison
1999-09-24  0:00           ` Nick Roberts
1999-09-24  0:00       ` Robert Dewar
1999-09-24  0:00     ` Robert Dewar
1999-09-23  0:00 ` Robert I. Eachus [this message]
1999-09-24  0:00   ` Nick Roberts
1999-09-25  0:00     ` Robert Dewar
1999-09-25  0:00     ` Robert Dewar
1999-09-25  0:00     ` Robert Dewar
1999-09-27  0:00     ` Ted Dennison
1999-09-27  0:00       ` Pascal Obry
1999-09-28  0:00         ` Ted Dennison
1999-09-28  0:00           ` Robert Dewar
1999-09-29  0:00             ` Geoff Bull
1999-09-28  0:00       ` Robert Dewar
replies disabled

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