Andy Wokula wrote:
> Am 31.08.2019 um 19:14 schrieb Bram Moolenaar:
> > ! < *globpath()*
> > globpath({path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
> > Perform glob() on all directories in {path} and concatenate
> > the results. Example: >
> > ***************
> > *** 5696,5701 ****
> > --- 5722,5731 ----
> > < Upwards search and limiting the depth of "**" is not
> > supported, thus using 'path' will not always work properly.
> >
> > + Can also be used as a|method|, the base is passed as the
> > + second argument: >
> > + GetExpr()->globpath(&rtp)
>
> You think, to be consistent with glob(), the base must be passed as
> the *second* argument? I wonder what your reason is here, it's quite
> unexpected.
In a chain what gets passed is the object that is being processed.
In this case I would say the expression is processed, while the path is
a parameter indicating how to process the expression.
eval GetPattern()->glob()->ListResults()
eval GetPattern()->globpath(&rtp)->ListResults()
Did you expect that with -> the base is always passed as the first
argument? That doesn't work well for some existing functions.
--
hundred-and-one symptoms of being an internet addict:
152. You find yourself falling for someone you've never seen or hardly
know, but, boy can he/she TYPE!!!!!!
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201908311907.x7VJ7XWb027900%40masaka.moolenaar.net.