[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] Introduce $(compare ...) for numerical comparison

From: Jouke Witteveen
Subject: Re: [PATCH 3/3] Introduce $(compare ...) for numerical comparison
Date: Mon, 13 Sep 2021 20:39:49 +0200

On Fri, Jul 16, 2021 at 2:04 PM Jouke Witteveen <j.witteveen@gmail.com> wrote:
> Numbers can come from $(words ...), automatic variables such as
> $(MAKELEVEL), from environment variables, or from shell output such as
> through $(shell expr ...).  The $(compare ...) function allows
> conditional evaluation controlled by numerical variables.
> * NEWS: Announce this feature.
> * doc/make.texi (Functions for Conditionals): Document 'compare'.
> * src/function.c (func_compare): Create the 'compare' built-in function.
> * tests/scripts/functions/compare: Test the 'compare' built-in function.
> ---
> This is a cleaned-up and documented version of a proposal submitted a
> year ago. The interface was conceived by Edward Welbourne and myself.
> Personally, I would not introduce mathematical operators to make, but
> given that numbers are a thing and they do pop up in variables, a
> comparison function makes sense to me.
> Thanks for considering!
> - Jouke

I would still be interested in seeing this patch series I sent two
months ago considered. I am not in a rush: this is just a friendly

- Jouke

reply via email to

[Prev in Thread] Current Thread [Next in Thread]