17 messages in com.perforce.jamming[jamming] Unclear parts of the Jam se...| From | Sent On | Attachments |
|---|---|---|
| Wallace, Richard | 24 Sep 2003 12:38 | |
| Harri Porten | 24 Sep 2003 13:37 | |
| Wallace, Richard | 24 Sep 2003 15:21 | |
| Paul Forgey | 24 Sep 2003 16:38 | |
| Alen Ladavac | 28 Sep 2003 05:01 | |
| Arnt Gulbrandsen | 29 Sep 2003 02:08 | |
| Arnt Gulbrandsen | 29 Sep 2003 02:49 | |
| Vladimir Prus | 29 Sep 2003 03:00 | |
| Alen Ladavac | 29 Sep 2003 04:41 | |
| Vladimir Prus | 29 Sep 2003 05:03 | |
| Arnt Gulbrandsen | 29 Sep 2003 05:11 | |
| Vladimir Prus | 29 Sep 2003 05:20 | |
| Johan Nilsson | 29 Sep 2003 05:38 | |
| Johan Nilsson | 29 Sep 2003 05:58 | |
| Alen Ladavac | 29 Sep 2003 06:51 | |
| Alen Ladavac | 29 Sep 2003 08:13 | |
| Christopher Seiwald | 29 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




