comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Vector of Vectors.
Date: Sat, 17 Jan 2009 11:45:25 -0500
Date: 2009-01-17T11:45:25-05:00	[thread overview]
Message-ID: <wcc7i4tnaoq.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1k65xsljjpsa9$.1e4pcvnzbjpag.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> And the next step is
>
>    for Element in Vector loop
>       -- place "new procedure" here!
>    end loop;

Sather has an elegant iterator feature, which is along these lines.

> There is nothing better for iteration than loops.

Maybe things like "map" found in functional languages?

>...Downward closures are
> meant for different stuff.

I'd say your above "for..." syntax should be thought of as syntactic
sugar defined in terms of downward closures.  Or perhaps in terms
of some coroutine-like concept.

- Bob



  reply	other threads:[~2009-01-17 16:45 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
2009-01-17 16:45             ` Robert A Duff [this message]
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