bugmake - Bugs: bug #104, The call function shouldn't eval...

 
 

bug #104: The call function shouldn't eval its arguments

Submitted by:  Paul D. Smith <psmith>
Submitted on:  Sat 20 Apr 2002 08:34:40 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: Wont FixPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.78Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 20 Apr 2002 08:36:05 PM UTC, comment #1:

Unfortunately, if you don't expand arguments then recursive invocations of $(call ...) don't work; any arguments passed to a recursive invocation of call are evaluated in the context of the lowest level call, not the level where they were defined. See the recursive call test case in the latest test suite.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Sat 20 Apr 2002 08:34:40 PM UTC, original submission:

Currently $(call ...) evaluates all its arguments. It would be better if it didn't do this automatically, so that if the macro called contains a builtin that doesn't automatically expand (such as $(if ...) or $(foreach ...) then it will work correctly.

Example: in this makefile, nothing should be printed since the if is true:

IF = $(if $(1),$(2),$(3))
all: ; $(call IF,true,,$(warning bad))

Reported via GNATS by -unavailable-

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 20 Apr 2002 08:36:05 PM UTCpsmithStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
  Closed on-=>-

Back to the top


Powered by Savane 3.1-cleanup1