comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: 'Image for composite types
Date: Sat, 6 Jun 2009 02:17:10 -0700 (PDT)
Date: 2009-06-06T02:17:10-07:00	[thread overview]
Message-ID: <4e1ceddf-9272-42ad-9e8c-4d62fdc81553@f16g2000vbf.googlegroups.com> (raw)
In-Reply-To: 87d49pihzj.fsf@debian.debian.org

On May 31, 1:17 pm, Stephen Leake <stephen_le...@stephe-leake.org>
wrote:
> Martin <martin.do...@btopenworld.com> writes:
> > Is it just me that gets fed up with the lack of 'Image on composite
> > types?
>
> > I'm thinking in particular of when I'm testing / debugging and usually
> > end up writing lots of 'Put_Line' code for each and every record. And
> > then having to maintain them.
>
> That's what Auto_Text_IO is forhttp://www.stephe-leake.org/ada/auto_text_io.html
>
> > It got me thinking that the language could be expanded to include some
> > helper attributes for easily composing a function that could return a
> > String a la 'Image for scalar types.
>
> I should think the compiler could just compose 'Image for each
> component.
>
> That won't work for access types, or task types (and probably others);
> there would have to be a way to provide user functions for those; a
> defineable 'Image attribute would be good, as you propose.
>
> --
> -- Stephe

Thanks for the link - just wish it was part of the language, make life
even easier.

Cheers
-- Martin



      reply	other threads:[~2009-06-06  9:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27 22:20 'Image for composite types Martin
2009-05-27 23:23 ` Robert A Duff
2009-05-27 23:44 ` Adam Beneschan
2009-05-28  6:46   ` Martin
2009-05-28  9:53   ` Georg Bauhaus
2009-05-28 10:42     ` Martin
2009-05-28 11:31       ` Georg Bauhaus
2009-05-28 16:25       ` Jeffrey R. Carter
2009-05-28 16:47         ` Martin
2009-05-28  3:36 ` Per Sandberg
2009-05-28  5:15   ` tmoran
2009-06-06  9:17   ` Martin
2009-05-28  9:13 ` Dmitry A. Kazakov
2009-05-31 12:17 ` Stephen Leake
2009-06-06  9:17   ` Martin [this message]
replies disabled

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