comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Vector of Vectors.
Date: Sat, 17 Jan 2009 11:51:45 +0100
Date: 2009-01-17T11:51:46+01:00	[thread overview]
Message-ID: <1k65xsljjpsa9$.1e4pcvnzbjpag.dlg@40tude.net> (raw)
In-Reply-To: c6b25ab4-ffc8-49e5-8ab3-18e3bc21b897@35g2000pry.googlegroups.com

On Sat, 17 Jan 2009 02:20:28 -0800 (PST), Ivan Levashew wrote:

> Downwards closures is rather easy way to write write-only Ada code.
> 
> I've specified the order in which I wrote every line. There are just 2
> levels here.
> 
> 1 declare
> 5    procedure ...(...) is
> 9       procedure ...(...) is
> ...
> 10      begin
> 12         Iterate (..., ...'Acess);
> 11      end ...;
> 6    begin
> 8       Update_Element (..., ...'Access);
> 7    end ...;
> 2 begin
> 4   Iterate (...., ...'Access);
> 3 end;
> 
> Do you read in the same order?
> 
> I'd like to have a syntax like this:
> 
> Iterate (..., ..., new procedure (...) is
>    begin
> ...
>    end;);
> 
> Procedure name should be optional, I think.

And the next step is

   for Element in Vector loop
      -- place "new procedure" here!
   end loop;

There is nothing better for iteration than loops. Downward closures are
meant for different stuff.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2009-01-17 10:51 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15  0:32 Vector of Vectors Peter C. Chapin
2009-01-15  2:44 ` Jeffrey R. Carter
2009-01-15 10:10   ` Alex R. Mosteo
2009-01-15 10:56     ` Georg Bauhaus
2009-01-15 20:44     ` Jeffrey R. Carter
2009-01-15 21:26       ` Robert A Duff
2009-01-17 10:20         ` Ivan Levashew
2009-01-17 10:51           ` Dmitry A. Kazakov [this message]
2009-01-17 16:45             ` Robert A Duff
2009-01-17 17:18               ` Dmitry A. Kazakov
2009-01-17 23:06                 ` Robert A Duff
2009-01-18  9:44                   ` Dmitry A. Kazakov
2009-01-17 16:41           ` Robert A Duff
2009-01-17 18:56             ` Georg Bauhaus
2009-01-17 22:59               ` Robert A Duff
2009-01-18 18:34                 ` Georg Bauhaus
2009-01-18 21:29                   ` Robert A Duff
2009-01-19 11:52                     ` Georg Bauhaus
2009-01-19 12:39                       ` Georg Bauhaus
2009-01-20  2:11                     ` Randy Brukardt
2009-01-15 12:08   ` Peter C. Chapin
2009-01-16 10:15     ` Alex R. Mosteo
replies disabled

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