Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile())
- X-seq: zsh-workers 39606
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile())
- Date: Tue, 11 Oct 2016 06:51:05 +0000
- Cc: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- 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-sasl-enc :x-sasl-enc; s=mesmtp; bh=D7dyEqZUUa3TVgtNaQeZOyhNYpo=; b=l0+4u7 rNRHMMai9V/4pSDP1t7smLZ8eBV6/jKZwg5Af4SxLlqDE3S3nqnzEx8A2YN0PH5n oF2K2W+/lQMErRhFI218sUWkdLDwalPgC9DJAgvrtyeghZoQeAHXGqf1Uk1s+slU mPHayatKz0lFnVFz+FMxvgoAy3YdAgDSjfCPk=
- 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-sasl-enc :x-sasl-enc; s=smtpout; bh=D7dyEqZUUa3TVgtNaQeZOyhNYpo=; b=VIULc XDlk2mhoTVg4xAYJyMm40VbDrqromkJHSGejXJTAXL+2i5tu8k6hXlSDpTtbj5UC HFrHWb6uWBlRQhYpJnliZBqcgAz3yvTczOVDxEGNOPZm3oKY9ArdwY/oYP53nBqi jgwsMhfZM5rV1tiG9e4q/AUp/2sFhj7nRnuiVA=
- In-reply-to: <CAH+w=7a7jc0Q2=M9aG5mttbazxfsHB-Cz=WwJzCvz_SdnbApRw@mail.gmail.com>
- 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>
Bart Schaefer wrote on Mon, Oct 10, 2016 at 19:46:18 -0700:
> The comments say that this argument is expected to be metafied
> (pattern.c 522), but as best I can tell it's passed down from
> paramsubst() tokenized but not metafied.
Pardon me if this has been discussed before, but why don't we introduce
the type definitions
.
struct metafied_t { char *v; };
struct unmetafied_t { char *v; };
.
and start incrementally replacing uses of "char *" with uses of these
types? This will gain type checking for metafied v. unmetafied strings,
as these two types do not implicitly convert into each other (attempts
to do so generate a compiler warning).
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author