I have a question on the scope of function parameters when using the
flavor() function to see if they are defined.
Consider the following functions and subsequent calls:
inner_fn = $(info 1F="$(flavor 1)" 1V="$(1)" 2F="$(flavor 2)" 2V="$(2)")
outer_fn = $(call inner_fn,one)
$(call outer_fn,one)
$(call outer_fn,one,two)
This will produce the following output with make-4.2.90
1F="simple" 1V="one" 2F="undefined" 2V=""
1F="simple" 1V="one" 2F="simple" 2V=""
It appears that the scope of the parameters in the outer function intrudes
into the inner function for the flavor() function but not for the value.
Is this expected behavior or a bug?
--
JP
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make