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

Re: Should defining a reference to an autoload parameter load it?



On Mon, Jun 9, 2025 at 10:10 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> I find it strange that the simple fact of defining a reference triggers any loading.

At least at present, the only way to find the actual type of the
autoloaded parameter is to load it.  It is possible to have an
autoloaded PM_NAMEREF.

Returning to my comment from the other thread, though, I would think
getparamnode_nofollow() does not need to autoload, and that change
could be dropped and just replaced with gethashnode2()?




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