17 messages in com.perforce.jamming[jamming] Unclear parts of the Jam se...
FromSent OnAttachments
Wallace, Richard24 Sep 2003 12:38 
Harri Porten24 Sep 2003 13:37 
Wallace, Richard24 Sep 2003 15:21 
Paul Forgey24 Sep 2003 16:38 
Alen Ladavac28 Sep 2003 05:01 
Arnt Gulbrandsen29 Sep 2003 02:08 
Arnt Gulbrandsen29 Sep 2003 02:49 
Vladimir Prus29 Sep 2003 03:00 
Alen Ladavac29 Sep 2003 04:41 
Vladimir Prus29 Sep 2003 05:03 
Arnt Gulbrandsen29 Sep 2003 05:11 
Vladimir Prus29 Sep 2003 05:20 
Johan Nilsson29 Sep 2003 05:38 
Johan Nilsson29 Sep 2003 05:58 
Alen Ladavac29 Sep 2003 06:51 
Alen Ladavac29 Sep 2003 08:13 
Christopher Seiwald29 Sep 2003 16:35 
Subject:[jamming] Unclear parts of the Jam sematics
From:Alen Ladavac (al@croteam.com)
Date:09/29/2003 08:13:04 AM
List:com.perforce.jamming

non-empty-list = whatever whenever however ; Echo 'Without E: $(non-empty-list)$(non-existing-var) ' ; Echo 'With E : $(non-empty-list)$(non-existing-var:E) ' ; outputs: ' ' ' whatever whenever however '

Aha! List products. I see... But, why is that used in HDRSEARCH? :/

Alen

P.S. Why does this list require "reply to all"? Anyway, perhaps I should stop asking too many questions. ;)

----- Original Message ----- From: Johan Nilsson To: jamm@perforce.com Sent: Monday, September 29, 2003 12:38 PM Subject: RE: [jamming] Unclear parts of the Jam sematics

-----Original Message----- From: Vladimir Prus [SMTP:gho@cs.msu.su] Sent: Monday, September 29, 2003 2:04 PM To: jamm@perforce.com Subject: Re: [jamming] Unclear parts of the Jam sematics Alen Ladavac wrote:

Looking at the source, it seems like $(VAR:E) is the same as $(VAR:E=).

If it was, then it would be unneeded, because that is the default: if var is not set, it evaluates to an empty var, doesn't it? Yes. Why would the original Jamfile use it, then?

That's a mistery ;-) However, it still seems to me that $(VAR:E) has the same effect as $(VAR:E=) (i.e. no effect). The following jam code local l = 1 ; local l2 ; ECHO '$(l:E=x)' '$(l2:E=x)' ; ECHO '$(l:E)' '$(l2:E)' ; produces bash-2.05b$ ./jam -fe.jam '1' 'x' '1' '' don't know how to make all I wouldn't say it has no effect (or did I misunderstand you?): non-empty-list = whatever whenever however ; Echo 'Without E: $(non-empty-list)$(non-existing-var) ' ; Echo 'With E : $(non-empty-list)$(non-existing-var:E) ' ; outputs: ' ' ' whatever whenever however ' don't know how to make all ...found 1 target... ...can't find 1 target...

// Johan