Re: [AD] for_each_entry API function

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2003-01-21, Eric <ebotcazou@xxxxxxxxxx> wrote:
> > I had a quick glance at the patch - what exactly does it do?
> > I gather it changes the behavior with respect to errno being set along the
> > way, right?
> 
> Right. It's basically for_each_file(), without the errno hassle.
> 
> > Perhaps a viable alternative would be for_all_files(), or even
> > for_all_files_do()?
> 
> I'd like to keep 'foreach'... my Perl obsession :-)

A few more:

1. for_matching_files -- not for-each, but is suggestive

2. for_every_file -- might be counter-intuitive

3. for_each_matching_file -- too long for some

Although, Julien's for_each_filename is better than all of them.

-- 
王浩禎




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/