help-make
[Top][All Lists]
Advanced

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

what would/should "VAR -= <text>" correspond to?


From: Robert P. J. Day
Subject: what would/should "VAR -= <text>" correspond to?
Date: Fri, 11 Mar 2005 14:27:27 -0500 (EST)

  i just ran across a situation where it would have been enormously
handy to be able to quickly remove arbitrary items from a list of
items.

  in the same way that variables support the operations

        VAR = fred barney
        VAR += wilma betty

it would have been nice to be able to do:

        VAR -= wilma bambam

the semantics being to remove (a la "filter-out") an arbitrary set of
matching strings.  if an item is not a word in the string, then
nothing happens.  no harm, no foul, with the result of the above
being that

        VAR = fred barney betty

i realize i can get the same effect by, say, writing a macro involving
"filter-out", but is there a reason the above couldn't be done?  i
just tried it and, a little to my surprise, i didn't get a syntax
error.  it didn't do anything, of course, but make didn't complain.

  does the above construct actually represent something in gnu make?
i don't see anything about it in the docs.

rday

p.s. the one problem i see is perhaps defining the meaning of
recursive expansion of such a construct, which might make all of this
moot.






reply via email to

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