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

Re: Overriding "builtin"



On Fri, Aug 12, 2022, at 3:33 PM, Zach Riggle wrote:
> Wouldn't the above also break for this?
>
>     function unhash() { ... }

Yes.  I did not mean to imply that my suggestion was bulletproof,
only to opine that seeking such a method is a fool's errand.  You
can take reasonable precautions, but at some point you are tilting
at windmills.

> It would be nice if we could add a feature such that the "builtin" 
> identifier cannot be overloaded.

I think this is a solution in search of a problem.

-- 
vq




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