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 39629
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile())
- Date: Thu, 13 Oct 2016 06:46:38 -0700
- 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; bh=WA1k+4zUgGuUNhUbNpTlGDA+0WDH+hnhl60EbTqQiP8=; b=iFrn3krb2VT7ThEISrW9jScjlqZPhFrjTF8rrah9w/ld26MewhUpnEbHbV0DPkt5Px pV9ngiOznt8Wyflud2hPwPCnv5rNEQfPBDGkUySLMVD/Z3k+pX76XU0aF7Dp1flNMca5 1VH8IuFWuCV29aDCSeEvVG7fkrvbukG/6rbfrTi7XFOHqGBkmv4CgRbOFMQAXFHB2ent Oa5WxSwzf5nPZzGBWNE9kZwXuKtOaAcWOlXQx3xzqslw+S7cO5zU8QO6BNVElcoyK0eK tsOKFDWk02Sp9sXLfUNSBCFyGhbexgEuHmzkKUjM1QzHZdiUyYzQv9Kg8hMuXgSgNK+/ rMsg==
- In-reply-to: <20161013112251.329c0dbf@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>
On Thu, Oct 13, 2016 at 3:22 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 11 Oct 2016 06:51:05 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> Pardon me if this has been discussed before, but why don't we introduce
>> the type definitions
>> and start incrementally replacing uses of "char *" with uses of these
>> types?
>
> This probably is a good idea, although the intermediate state where this
> has been only partly done is likely to be a bit of a mess.
I'd expect to encounter a lot of problems with (char **) arrays where
every element of the array is (or not) metafied. (Hopefully there
aren't any that are mixed). As was noted in the discussion of passing
around lengths of arrays when manipulating array parameters, the older
code makes a lot of assumptions about pointer arithmetic and s[1][1]
subscripting and so on.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author