Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: autoload with explicit path



On Tue, 17 Jan 2017 16:06:22 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> How does any of this interact with searching for functions inside files
> built with zcompile?
> 
> (Does zcompile even support having a function name that contains a slash?)

It should be seamless.  It should search the same files it always would have,
except using an explicit path rather than everywhere along $fpath.  The
function *name* doesn't contain a slash (it can't with this mechanism).
The autoload immediately gets separated into dir + name which are stored
separately.

Functions marked for autoload remain second class citizens in the sense
that any time a full definition is encountered it is immediately used
and the autoload forgotten about --- that was the point of yesterday's
patch.

pws



Messages sorted by: Reverse Date, Date, Thread, Author