bug-make
[Top][All Lists]
Advanced

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

Re: New conditional assignment facility


From: Dmitry Goncharov
Subject: Re: New conditional assignment facility
Date: Sun, 21 Jan 2024 14:22:43 -0500

On Sun, Jan 21, 2024 at 11:17 AM Paul Smith <psmith@gnu.org> wrote:

> I think you wrote that wrong: I think you mean "otherwise +:= behaves
> the same as +="... ?

You are right.

Let us clarify the goal of these enhancements?
i assumed that the goal of these enhancements was to allow code like
hello+:=$(world)
create 'hello' as a simple variable, if 'hello' does not exist yet.

After reading your != example, i realize i misunderstood the meaning
of option one.
Let me correct myself.

If the only goal was to allow +:= create a simple variable, then can
we do the following?
"If no variable with this name exists, then +:= creates a simple
variable, and +:::= creates an immediately-expanded-and-escaped
variable. Otherwise, +:= and +:::= behave the same as +=".
If we go with this, then there is no need for +!=, because +!= would
behave as +=. Similarly, there is no need for +::=, because +::= would
behave as +:=.

regards, Dmitry



reply via email to

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