Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: autoload with explicit path
- X-seq: zsh-workers 40338
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: PATCH: autoload with explicit path
- Date: Thu, 12 Jan 2017 16:09:21 +0000
- Cc: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=kcwzJIrioHzH3/g WRdNEla4bFIc=; b=mEVDIJi/ooy+pYBK+22SZ/l1hZWxAcYB/BakXXcBVQLCmPK +jiEt1yYzjGwsNliHiNy6OUJX1N8uzItJdp+c++cbEfVhjMYIt0gRcdt0sM5PRVb /L4S3MNfe851eSHbuICQ4FdWBSC/lq03OTVnPwScRwh88nWwO4nkunpCZSH0=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=kcwzJIrioHzH3/ gWRdNEla4bFIc=; b=ITJuZOKjVeWPPZTl6zya7wNuy4XVY4n5yX/gpTyka8SUyj CnjM8bp5NPHOz7DiDAHExkolddcATACY9oNv9umSnaeFznKfFaV3xyMYH3yJCIiZ gXL7UtKtksRe/3Gu3Ne147j2IP53wrTVeE6eXEU/FuY+Arih5ybZyPGeofBYE=
- In-reply-to: <20170112155920.360ad5d7@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170112125605eucas1p1b2539afbacec2d28d44c6fd73b0d50af@eucas1p1.samsung.com> <20170112125602.4fa64dc6@pwslap01u.europe.root.pri> <20170112154057.GA4899@fujitsu.shahaf.local2> <20170112155920.360ad5d7@pwslap01u.europe.root.pri>
Peter Stephenson wrote on Thu, Jan 12, 2017 at 15:59:20 +0000:
> On Thu, 12 Jan 2017 15:40:57 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > We could also put these two members in a union{} if they are mutually
> > exclusive (if at least one of them is NULL at all times).
>
> They are mutually exclusive, as one is only useful for an autoload and
> one is only useful with real source, which is why it uses the same
> pointer. Making it a union doesn't actually change anything: it's still
> the same set of of reads and writes.
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author