Boost logo

Boost-Build :

From: fs_kazike (fs_kazike_at_[hidden])
Date: 2005-07-27 08:56:30


I used Perforce Jam (PJam) and try now to "port" to BBv2, because it
makes a lot of things a lot easier.
I found out that in BBv2 the return behaves different than in PJam:

rule ForTest
local i ;
for i in $(1)
echo "- " $(i) ;
if $(i) = $(2)
return $(i) ;
return ;

echo res is [ ForTest a b c d e f : c ] ;

Output under PJam:

- a
- b
- c
res is c

Output under BBv2:

- a
- b
- c
- d
- e
- f
res ist

I was very surprised that the return did not exit the rule and the for
Is this behavior intended or a bug ?
If it's intended, can somebody explain it to me.




bjam -v
Boost.Jam Version 3.1.11. OS=NT.
Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
Copyright 2001 David Turner.
Copyright 2001-2004 David Abrahams.
Copyright 2002-2005 Rene Rivera.
Copyright 2003-2005 Vladimir Prus.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at