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

Re: PATCH: autoload with explicit path

Peter Stephenson wrote on Thu, Jan 12, 2017 at 16:16:51 +0000:
> On Thu, 12 Jan 2017 16:09:21 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > Of course it would be exactly the same machine code, but the source code
> > would be more robust against bugs.  It's a lot harder to refer to the
> > wrong union member than to use the ->filename member without testing
> > PM_LOADDIR first.
> Hmm, feel free to write this if you think you can make things clearer;
> the bit setting will tell you what needs doing in each case.  But I
> don't really see how it helps.  If the bit happens to be set you will do
> it one way having exactly the same effect as if you did it the other
> way, so I don't see the gain.

The point is that the next time writes:
that won't compile, so he will be forced to take into account the two
distinct overloaded meanings.  This might have prevented the bug you
fixed in 40335 from being written.

I'll see if adding it makes things clearer, will post if it does.

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