Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile())
- X-seq: zsh-workers 39644
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile())
- Date: Fri, 14 Oct 2016 10:28:34 -0700
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S5qiUqMZMlfGQtuap6skTxjRfPzIpPLTI43GJZRQtbM=; b=E86TA0GuLnM2yl3pzH7MIvep5DExn5E4J3HMOAea8cmVfDKo8LAHRrE1En/vSxyQ2+ jw7KP+v2ab1hevv02uRp7Pp3UHeapasHdNShmuoVOEiyYH1C8BN/bCF2SwEl76J2Auv1 4omJQNkKvyUKeFK76bB5cirtbG+k7x1/5yt9oiQcd5sch1PPMAmRjK47LB2bgRK9utTI w75J0q+oPH/19l0jVISUQF00iglzskDnbI0bBWn5DrE7fPr/0xrF5MV4LXvOsu5mwD2/ d323fI+vS6pkxOVC9J7/Iwqbx3aq1Mk5CWfkOg6EQKlqnnqBt+8j8ohQHKtC9N4uYLnB 67kw==
- In-reply-to: <20161014175317.38e4e61d@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: <CAKc7PVBEjPJMtV59CrN6LmrDaoGqfa_DZqwo3Y9HK=+0od7ycA@mail.gmail.com> <CAKc7PVCAR2yTJGgdBbvTp=mBC0ZrXcVWW0DE_U26TezSTNdd=A@mail.gmail.com> <CAKc7PVB=485r3nRz_pP3A-k-oq2pOp5qYUK7pE1VEApXb0pR1g@mail.gmail.com> <CAKc7PVDof_GEuoSv7pg8c1=spXfDkWopP5VR8dVHg-bxXVES1g@mail.gmail.com> <CAKc7PVCRtBBVONgiExopYYUv7x4-HN_QEYk-05aoqZihiCRgMw@mail.gmail.com> <CAH+w=7a7jc0Q2=M9aG5mttbazxfsHB-Cz=WwJzCvz_SdnbApRw@mail.gmail.com> <CGME20161011065321eucas1p22afaabbe1f17f26a1b3507619ed1d96f@eucas1p2.samsung.com> <20161011065105.GB16819@fujitsu.shahaf.local2> <20161013112251.329c0dbf@pwslap01u.europe.root.pri> <CAH+w=7ZArSYVkjcrbAmkeiWsmpiufbj9+DeNhORgKtYEXEkn7Q@mail.gmail.com> <20161014063625.GC11115@fujitsu.shahaf.local2> <20161014175317.38e4e61d@pwslap01u.europe.root.pri>
On Fri, Oct 14, 2016 at 9:53 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Fri, 14 Oct 2016 06:36:25 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> A 'char **' would become a 'struct metafied_t *', i.e., an array of
>> structs.
>
> I don't think arrays of unmetafied strings are that common, and in at
> least one case (the print builtin) having the length as part of the
> unmetafied_t structure, avoiding a parallel length structure, is
> beneficial.
I am more concerned about the large number of places where s[0][1]
would have to become s[0].v[1] than about whether the strings are
metafied or not. Similarly *s++ and so on.
Including the even larger number of places where we'd have to convert
e.g. "if (!s)" to "if (!s.v)" because it's not possible to pass a
null struct by value.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author