_indexed_ iteration using opApply or range

spir denis.spir at gmail.com
Mon Dec 13 10:46:39 PST 2010


On Mon, 13 Dec 2010 09:47:39 -0500
"Steven Schveighoffer" <schveiguy at yahoo.com> wrote:

> What's wrong with using opApply?  You should be able to define both range  
> primitives and opApply and opApply will be used when foreach is used, and  
> the range primitives will be used by things like std.algorithm.

Hope opApply would take precedence for iteration. I like range interface for its integration with other language features, like funcs from std.algorithm precisely. May end up using both (if works properly -- i have other issues with ranges).

Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list