Re: how to pass a bound method to fileutil::traverse as a -prefilter

Liste des GroupesRevenir à cl tcl 
Sujet : Re: how to pass a bound method to fileutil::traverse as a -prefilter
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tcl
Date : 23. Jul 2025, 16:27:15
Autres entêtes
Message-ID : <ygaecu7x6zw.fsf@akutech.de>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Mark Summerfield <m.n.summerfield@gmail.com>
| I want to pass a bound method to fileutil::traverse as a -prefilter.
| I'm using `lambda` but it doesn't help. I can't work out what I'm
| doing wrong based on the error output.
--<snip-snip>--
|         fileutil::traverse iter -prefilter $pre_filter
--<snip-snip>--
| unknown option "::apply {{ignore dirname} {
|                     dir_filter $ignore $dirname
|                 }} {test*.* zOld}"

man traverse(n)
       ::fileutil::traverse ?objectName? path ?option value...?

I think you are missing the PATH argument to ::fileutil::traverse, so
the '-prefilter' is taken as the path, and the $pre_filter as an option
name (which does not exist, as the error message states :-)

R'

Date Sujet#  Auteur
23 Jul12:11 * how to pass a bound method to fileutil::traverse as a -prefilter4Mark Summerfield
23 Jul16:27 +- Re: how to pass a bound method to fileutil::traverse as a -prefilter1Ralf Fassel
23 Jul16:43 +- Re: how to pass a bound method to fileutil::traverse as a -prefilter1Ralf Fassel
23 Jul16:44 `- Re: how to pass a bound method to fileutil::traverse as a -prefilter1Mark Summerfield

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal